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

Function NeedEscape

pkg/util/stringencoding/string_encoding.go:129–131  ·  view source on GitHub ↗

NeedEscape returns whether the given byte needs to be escaped.

(ch byte)

Source from the content-addressed store, hash-verified

127
128// NeedEscape returns whether the given byte needs to be escaped.
129func NeedEscape(ch byte) bool {
130 return EncodeMap[ch] != DontEscape
131}

Callers 1

EncodeSQLStringWithFlagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…