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

Function EncodeSQLString

pkg/sql/lexbase/encode.go:136–138  ·  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

134// EncodeSQLString writes a string literal to buf. All unicode and
135// non-printable characters are escaped.
136func EncodeSQLString(buf *bytes.Buffer, in string) {
137 EncodeSQLStringWithFlags(buf, in, EncNoFlags)
138}
139
140// EscapeSQLString returns an escaped SQL representation of the given
141// string. This is suitable for safely producing a SQL string valid

Callers 3

FormatMethod · 0.92
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…