MCPcopy Create free account
hub / github.com/apecloud/myduckserver / QueryExecutor

FuncType QueryExecutor

pgserver/duck_handler.go:402–402  ·  view source on GitHub ↗

QueryExecutor is a function that executes a query and returns the result as a schema and iterator. Either of |parsed| or |analyzed| can be nil depending on the use case

func(ctx *sql.Context, query string, parsed tree.Statement, stmt *duckdb.Stmt, vars []any) (sql.Schema, sql.RowIter, *sql.QueryFlags, error)

Source from the content-addressed store, hash-verified

400// QueryExecutor is a function that executes a query and returns the result as a schema and iterator. Either of
401// |parsed| or |analyzed| can be nil depending on the use case
402type QueryExecutor func(ctx *sql.Context, query string, parsed tree.Statement, stmt *duckdb.Stmt, vars []any) (sql.Schema, sql.RowIter, *sql.QueryFlags, error)
403
404// executeQuery is a QueryExecutor that calls QueryWithBindings on the given engine using the given query and parsed
405// statement, which may be nil.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected