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

Function WriteCopyDone

server/wire/protocol.go:397–399  ·  view source on GitHub ↗

writeCopyDone signals the end of COPY data

(w io.Writer)

Source from the content-addressed store, hash-verified

395 binary.BigEndian.PutUint16(colBytes, uint16(numColumns))
396 data = append(data, colBytes...)
397
398 // Format for each column (0=text)
399 for i := int16(0); i < numColumns; i++ {
400 formatBytes := make([]byte, 2)
401 if textFormat {
402 binary.BigEndian.PutUint16(formatBytes, 0)

Callers 3

handleCopyOutMethod · 0.92
handleCopyOutBinaryMethod · 0.92

Calls 1

WriteMessageFunction · 0.85

Tested by 1