func QuoteBytes(buf []byte) string
func QuoteString(str string) string
func SanitizeSQL(sql string, args ...any) (string, error)
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 Part any
type Query struct { Parts []Part }
func NewQuery(sql string) (*Query, error)
func (q *Query) Sanitize(args ...any) (string, error)