Documentation
¶
Index ¶
Constants ¶
View Source
const ( PostgreSQLNameDataLen = 64 PostgreSQLNameDataMin = 3 )
Variables ¶
View Source
var (
ErrInvalidName = errors.New("invalid name")
)
Functions ¶
This section is empty.
Types ¶
type PGIdentifier ¶
type PGIdentifier string
based on pgx.Identifier from `jackc/pgx` PGIdentifier a PostgreSQL identifier or name. Identifiers can be composed of multiple parts such as ["schema", "table"] or ["table", "column"].
func (PGIdentifier) Sanitize ¶
func (ident PGIdentifier) Sanitize() string
Sanitize returns a sanitized string safe for SQL interpolation.
func (PGIdentifier) String ¶
func (ident PGIdentifier) String() string
String returns a string safe for SQL and URIs.
func (PGIdentifier) Validate ¶
func (ident PGIdentifier) Validate() (string, error)
Click to show internal directories.
Click to hide internal directories.