MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / EncodeSQLString

Function EncodeSQLString

pkg/sql/lex/encode.go:72–74  ·  view source on GitHub ↗

EncodeSQLString writes a string literal to buf. All unicode and non-printable characters are escaped.

(buf *bytes.Buffer, in string)

Source from the content-addressed store, hash-verified

70// EncodeSQLString writes a string literal to buf. All unicode and
71// non-printable characters are escaped.
72func EncodeSQLString(buf *bytes.Buffer, in string) {
73 EncodeSQLStringWithFlags(buf, in, EncNoFlags)
74}
75
76// EscapeSQLString returns an escaped SQL representation of the given
77// string. This is suitable for safely producing a SQL string valid

Callers 2

FormatMethod · 0.92
EscapeSQLStringFunction · 0.85

Calls 1

EncodeSQLStringWithFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…