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

Method QueryContext

server/executor.go:98–104  ·  view source on GitHub ↗
(ctx context.Context, query string, args ...any)

Source from the content-addressed store, hash-verified

96}
97
98func (e *PinnedExecutor) QueryContext(ctx context.Context, query string, args ...any) (RowSet, error) {
99 rows, err := e.conn.QueryContext(ctx, query, args...)
100 if err != nil {
101 return nil, err
102 }
103 return &LocalRowSet{rows: rows}, nil
104}
105
106func (e *PinnedExecutor) ExecContext(ctx context.Context, query string, args ...any) (ExecResult, error) {
107 return e.conn.ExecContext(ctx, query, args...)

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected