import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { NoopQueryExecutor } = kysely;
A QueryExecutor subclass that can be used when you don't have a QueryCompiler, ConnectionProvider or any other needed things to actually execute queries.
Methods
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.
provideConnection<T>(): Promise<T>
Provides a connection for the callback and takes care of disposing the connection after the callback has been run.
withPlugin(plugin: KyselyPlugin): NoopQueryExecutor
Returns a copy of this executor with a plugin added as the last plugin.
withPluginAtFront(plugin: KyselyPlugin): NoopQueryExecutor
Returns a copy of this executor with a plugin added as the first plugin.
withPlugins(plugins: ReadonlyArray<KyselyPlugin>): NoopQueryExecutor
Returns a copy of this executor with a list of plugins added as the last plugins.