The highest tagged major version is
v5 .
Discover Packages
github.com/yugabyte/pgx
internal
sanitize
package
Version:
v3.6.2+incompatible
Opens a new window with list of versions in this module.
Published: Jan 24, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types QuoteBytes(buf) QuoteString(str) SanitizeSQL(sql, args) type Part type Query NewQuery(sql) (q) Sanitize(args)
Documentation
¶
SanitizeSQL replaces placeholder values with args. It quotes and escapes args
as necessary. This function is only safe when standard_conforming_strings is
on.
Part is either a string or an int. A string is raw SQL. An int is a
argument placeholder.
type Query struct {
Parts []Part
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.