MCPcopy
hub / github.com/jackc/pgx / traceDoubleQuotedString

Function traceDoubleQuotedString

pgproto3/trace.go:396–398  ·  view source on GitHub ↗

traceDoubleQuotedString returns t.buf as a double-quoted string without any escaping. It is roughly equivalent to pqTraceOutputString in libpq.

(buf []byte)

Source from the content-addressed store, hash-verified

394// traceDoubleQuotedString returns t.buf as a double-quoted string without any escaping. It is roughly equivalent to
395// pqTraceOutputString in libpq.
396func traceDoubleQuotedString(buf []byte) string {
397 return `"` + string(buf) + `"`
398}
399
400// traceSingleQuotedString returns buf as a single-quoted string with non-printable characters hex-escaped. It is
401// roughly equivalent to pqTraceOutputNchar in libpq.

Callers 10

traceBindMethod · 0.85
traceCommandCompleteMethod · 0.85
traceCopyFailMethod · 0.85
traceDescribeMethod · 0.85
traceExecuteMethod · 0.85
traceParameterStatusMethod · 0.85
traceParseMethod · 0.85
traceQueryMethod · 0.85
traceRowDescriptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected