import { type kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { QueryExecutor } = kysely;
This interface abstracts away the details of how to compile a query into SQL
and execute it. Instead of passing around all those details, SelectQueryBuilder
and other classes that execute queries can just pass around and instance of
QueryExecutor
.
Methods
Returns the adapter for the current dialect.
Returns all installed plugins.
Given the query the user has built (expressed as an operation node tree)
this method runs it through all plugins' transformQuery
methods and
returns the result.
Compiles the transformed query into SQL. You usually want to pass the output of transformQuery into this method but you can compile any query using this method.
Executes a compiled query and runs the result through all plugins'
transformResult
method.
Executes a compiled query and runs the result through all plugins'
transformResult
method. Results are streamead instead of loaded
at once.
Returns a copy of this executor with a new connection provider.
Returns a copy of this executor with a plugin added as the last plugin.
Returns a copy of this executor with a list of plugins added as the last plugins.
Returns a copy of this executor with a plugin added as the first plugin.
Returns a copy of this executor without any plugins.