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

Method QueryContext

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

Source from the content-addressed store, hash-verified

36}
37
38func (e *LocalExecutor) QueryContext(ctx context.Context, query string, args ...any) (RowSet, error) {
39 rows, err := e.db.QueryContext(ctx, query, args...)
40 if err != nil {
41 return nil, err
42 }
43 return &LocalRowSet{rows: rows}, nil
44}
45
46func (e *LocalExecutor) ExecContext(ctx context.Context, query string, args ...any) (ExecResult, error) {
47 return e.db.ExecContext(ctx, query, args...)

Callers

nothing calls this directly

Calls 1

QueryContextMethod · 0.65

Tested by

no test coverage detected