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

Function WriteCopyData

server/wire/protocol.go:392–394  ·  view source on GitHub ↗

writeCopyData sends a row of COPY data

(w io.Writer, data []byte)

Source from the content-addressed store, hash-verified

390 data = append(data, 1)
391 }
392
393 // Number of columns
394 colBytes := make([]byte, 2)
395 binary.BigEndian.PutUint16(colBytes, uint16(numColumns))
396 data = append(data, colBytes...)
397

Callers 3

handleCopyOutMethod · 0.92
handleCopyOutBinaryMethod · 0.92

Calls 1

WriteMessageFunction · 0.85

Tested by 1