MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewWireWriter

Function NewWireWriter

utils/wirerw.go:33–39  ·  view source on GitHub ↗

NewWireWriter creates a new WireRW for writing to. This is intended strictly for writing to the binary wire format that Postgres expects, and should not be used for internal write operations (utils.Writer is for internal use).

()

Source from the content-addressed store, hash-verified

31// NewWireWriter creates a new WireRW for writing to. This is intended strictly for writing to the binary wire format
32// that Postgres expects, and should not be used for internal write operations (utils.Writer is for internal use).
33func NewWireWriter() *WireRW {
34 return &WireRW{
35 buf: bytes.NewBuffer(make([]byte, 0, 8)),
36 readIdx: 0,
37 numSlice: make([]byte, 8), // 8 bytes will cover all floats and integers
38 }
39}
40
41// NewWireReader creates a new WireRW for reading from data previously written by either a valid Postgres server or
42// a WireRW instance. This is intended strictly for reading the binary wire format that Postgres expects, and should not

Callers 15

bytea.goFile · 0.92
float8.goFile · 0.92
bool.goFile · 0.92
date.goFile · 0.92
record.goFile · 0.92
regclass.goFile · 0.92
numeric.goFile · 0.92
timestamp.goFile · 0.92
varchar.goFile · 0.92
timetz.goFile · 0.92
int2.goFile · 0.92
regproc.goFile · 0.92

Calls 1

NewBufferMethod · 0.65

Tested by

no test coverage detected