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

Method Exec

server/query_source_test.go:116–118  ·  view source on GitHub ↗
(string, ...any)

Source from the content-addressed store, hash-verified

114
115// newBufferedConn builds a clientConn that writes to an in-memory buffer, for
116// asserting the exact backend messages a simple query produces. The returned
117// *bytes.Buffer holds the flushed output after handleQuery.
118func newBufferedConn(exec QueryExecutor) (*clientConn, *bytes.Buffer) {
119 clientSide, serverSide := net.Pipe()
120 // The pipe halves are only needed so bufio has something to wrap; the test
121 // reads the flushed buffer, not the pipe. Closed by the caller via t.Cleanup.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected