MCPcopy Create free account
hub / github.com/jackc/pgx / quoteArrayElement

Function quoteArrayElement

pgtype/array.go:369–371  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

367var quoteArrayReplacer = strings.NewReplacer(`\`, `\\`, `"`, `\"`)
368
369func quoteArrayElement(src string) string {
370 return `"` + quoteArrayReplacer.Replace(src) + `"`
371}
372
373func isSpace(ch byte) bool {
374 // see array_isspace:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…