Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DefaultQueryExecutor

class DefaultQueryExecutor extends QueryExecutorBase {
constructor(
compiler: QueryCompiler,
adapter: DialectAdapter,
connectionProvider: ConnectionProvider,
plugins?: KyselyPlugin[],
);
get adapter(): DialectAdapter;
 
compileQuery(node: RootOperationNode): CompiledQuery;
provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>;
withConnectionProvider(connectionProvider: ConnectionProvider): DefaultQueryExecutor;
withoutPlugins(): DefaultQueryExecutor;
withPlugin(plugin: KyselyPlugin): DefaultQueryExecutor;
withPluginAtFront(plugin: KyselyPlugin): DefaultQueryExecutor;
withPlugins(plugins: ReadonlyArray<KyselyPlugin>): DefaultQueryExecutor;
}

§Extends

§
QueryExecutorBase
[src]

§Constructors

§
new DefaultQueryExecutor(compiler: QueryCompiler, adapter: DialectAdapter, connectionProvider: ConnectionProvider, plugins?: KyselyPlugin[])
[src]

§Properties

§
adapter: DialectAdapter readonly
[src]

Returns the adapter for the current dialect.

§Methods

§

Compiles the transformed query into SQL. You usually want to pass the output of {@link transformQuery} into this method but you can compile any query using this method.

§
provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>
[src]

Provides a connection for the callback and takes care of disposing the connection after the callback has been run.

§
withConnectionProvider(connectionProvider: ConnectionProvider): DefaultQueryExecutor
[src]

Returns a copy of this executor with a new connection provider.

§
withoutPlugins(): DefaultQueryExecutor
[src]

Returns a copy of this executor without any plugins.

§

Returns a copy of this executor with a plugin added as the last plugin.

§
withPluginAtFront(plugin: KyselyPlugin): DefaultQueryExecutor
[src]

Returns a copy of this executor with a plugin added as the first plugin.

§
withPlugins(plugins: ReadonlyArray<KyselyPlugin>): DefaultQueryExecutor
[src]

Returns a copy of this executor with a list of plugins added as the last plugins.