MCPcopy Create free account
hub / github.com/PostHog/duckgres / writeCommandComplete

Method writeCommandComplete

server/conn_results.go:508–517  ·  view source on GitHub ↗
(tag string)

Source from the content-addressed store, hash-verified

506 }
507 if elem == nil {
508 buf.WriteString("NULL")
509 } else {
510 s := formatTextValue(elem, elementOID)
511 // Quote strings that contain special characters
512 if needsArrayQuoting(s) {
513 buf.WriteByte('"')
514 // Escape backslashes and double quotes
515 for _, c := range s {
516 if c == '"' || c == '\\' {
517 buf.WriteByte('\\')
518 }
519 buf.WriteRune(c)
520 }

Callers 15

handleExecuteMethod · 0.95
streamRowsToClientMethod · 0.95
handleCopyMethod · 0.95
handleCopyOutMethod · 0.95
handleCopyOutBinaryMethod · 0.95
handleCopyInMethod · 0.95
handleCopyInBinaryMethod · 0.95
handlePgCursorsQueryMethod · 0.95

Calls 3

flushWriterMethod · 0.95
WriteCommandCompleteFunction · 0.92

Tested by

no test coverage detected