package sanitize
Import Path
github.com/jackc/pgx/v5/internal/sanitize (on go.dev)
Dependency Relation
imports 9 packages, and imported by one package
Involved Source Files
sanitize.go
Package-Level Type Names (total 5, in which 2 are exported)
Part is either a string or an int. A string is raw SQL. An int is a
argument placeholder.
Package-Level Functions (total 11, in which 4 are exported)
func QuoteBytes(dst, buf []byte) []byte func QuoteString(dst []byte, str string) []byte
SanitizeSQL replaces placeholder values with args. It quotes and escapes args
as necessary. This function is only safe when standard_conforming_strings is
on.
Package-Level Variables (total 4, none are exported)
Package-Level Constants (total 2, neither is exported)
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)