pgutf8str

package
v0.0.0-...-6ee8545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullChar         = '\x00'
	NullCharSanitize = '\ufffe'
)

Variables

This section is empty.

Functions

func TextArrayToSlice

func TextArrayToSlice(src pgtype.FlatArray[Text]) []string

Types

type Text

type Text struct {
	pgtype.Text // Contains sanitized string.
}

Text is a custom pgtype that wraps the pgtype.Text. It is safe from null characters.

func (*Text) Scan

func (dst *Text) Scan(src any) error

Scan implements the database/sql Scanner interface.

func (*Text) ScanText

func (t *Text) ScanText(v pgtype.Text) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL