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)
Part is either a string or an int. A string is raw SQL. An int is a
argument placeholder.
Package-Level Functions (total 4)
func QuoteBytes(buf []byte) string func QuoteString(str string) 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.
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |