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

Method QueryContext

server/conn_test.go:1437–1443  ·  view source on GitHub ↗
(context.Context, string, ...any)

Source from the content-addressed store, hash-verified

1435 rollbackCalls int
1436}
1437
1438func (e *abortedSelectRecoveryExecutor) QueryContext(context.Context, string, ...any) (RowSet, error) {
1439 e.queryCalls++
1440 if e.queryCalls == 1 {
1441 return nil, errors.New("TransactionContext Error: Current transaction is aborted (please ROLLBACK)")
1442 }
1443 return &staticCountRowSet{count: 1}, nil
1444}
1445
1446func (e *abortedSelectRecoveryExecutor) ExecContext(_ context.Context, query string, _ ...any) (ExecResult, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected