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

Function parseFrame

server/conn_skip_until_sync_test.go:81–89  ·  view source on GitHub ↗
(stmtName, query string)

Source from the content-addressed store, hash-verified

79}
80
81func parseFrame(stmtName, query string) []byte {
82 var body bytes.Buffer
83 body.WriteString(stmtName)
84 body.WriteByte(0)
85 body.WriteString(query)
86 body.WriteByte(0)
87 _ = binary.Write(&body, binary.BigEndian, int16(0)) // no parameter types
88 return pgFrame(wire.MsgParse, body.Bytes())
89}
90
91func bindFrame(portalName, stmtName string) []byte {
92 var body bytes.Buffer

Calls 2

pgFrameFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected