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

Interface QueryExecutor

server/sqlcore/interfaces.go:47–60  ·  view source on GitHub ↗

QueryExecutor abstracts database query execution, allowing both local (*sql.DB) and remote (Arrow Flight SQL) backends.

Source from the content-addressed store, hash-verified

45 Err() error
46}
47
48// ExecResult represents the result of a non-query execution.
49type ExecResult interface {
50 RowsAffected() (int64, error)
51}
52
53// RawConn provides access to the underlying driver connection.
54// *sql.Conn satisfies this interface.
55type RawConn interface {
56 Raw(func(any) error) error
57 Close() error
58}
59
60// QueryExecutor abstracts database query execution, allowing both local
61// (*sql.DB) and remote (Arrow Flight SQL) backends.
62type QueryExecutor interface {
63 QueryContext(ctx context.Context, query string, args ...any) (RowSet, error)

Callers 30

ImpersonateMethod · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
QueryContextMethod · 0.65
QueryContextMethod · 0.65
execLockedMethod · 0.65
checkDatabaseNameMethod · 0.65
RegisterLoginFunction · 0.65

Implementers 5

LocalExecutorserver/executor.go
PinnedExecutorserver/executor.go
profilingOutputExecutorserver/profiling_test.go
countingExecutorserver/sessionmeta/sessionmeta_test.go
FlightExecutorserver/flightclient/flight_executor.go

Calls

no outgoing calls

Tested by

no test coverage detected