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

Method QueryContext

server/query_source_test.go:106–109  ·  view source on GitHub ↗
(context.Context, string, ...any)

Source from the content-addressed store, hash-verified

104 typ := buf[i]
105 length := int(buf[i+1])<<24 | int(buf[i+2])<<16 | int(buf[i+3])<<8 | int(buf[i+4])
106 if length < 4 || i+1+length > len(buf) {
107 t.Fatalf("malformed wire message at offset %d (length %d, remaining %d)", i, length, len(buf)-i)
108 }
109 msgs = append(msgs, wireMsg{typ: typ, body: buf[i+5 : i+1+length]})
110 i += 1 + length
111 }
112 return msgs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected