MCPcopy Create free account
hub / github.com/dolthub/doltgresql / EncodeSQLString

Function EncodeSQLString

postgres/parser/lex/encode.go:85–87  ·  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

83// EncodeSQLString writes a string literal to buf. All unicode and
84// non-printable characters are escaped.
85func EncodeSQLString(buf *bytes.Buffer, in string) {
86 EncodeSQLStringWithFlags(buf, in, EncNoFlags)
87}
88
89// EscapeSQLString returns an escaped SQL representation of the given
90// string. This is suitable for safely producing a SQL string valid

Callers 5

FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
FormatMethod · 0.92
EscapeSQLStringFunction · 0.85

Calls 1

EncodeSQLStringWithFlagsFunction · 0.85

Tested by

no test coverage detected