package sanitize

Import Path
	github.com/jackc/pgx/v5/internal/sanitize (on go.dev)

Dependency Relation
	imports 7 packages, and imported by one package

Involved Source Files sanitize.go
Package-Level Type Names (total 2)
/* sort by: | */
Part is either a string or an int. A string is raw SQL. An int is a argument placeholder.
Parts []Part (*Query) Sanitize(args ...any) (string, error) func NewQuery(sql string) (*Query, error)
Package-Level Functions (total 4)
func NewQuery(sql string) (*Query, error)
func QuoteBytes(buf []byte) string
SanitizeSQL replaces placeholder values with args. It quotes and escapes args as necessary. This function is only safe when standard_conforming_strings is on.