A QueryExecutor subclass that can be used when you don't have a QueryCompiler, ConnectionProvider or any other needed things to actually execute queries.

Hierarchy

  • QueryExecutorBase
    • NoopQueryExecutor

Constructors

  • Parameters

    Returns NoopQueryExecutor

Properties

#private: any

Accessors

  • get adapter(): DialectAdapter
  • Returns the adapter for the current dialect.

    Returns DialectAdapter

  • get plugins(): readonly KyselyPlugin[]
  • Returns all installed plugins.

    Returns readonly KyselyPlugin[]

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.

    Returns kysely.CompiledQuery<unknown>

  • Executes a compiled query and runs the result through all plugins' transformResult method.

    Type Parameters

    • R

    Parameters

    Returns Promise<QueryResult<R>>

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

    Type Parameters

    • T

    Returns Promise<T>

  • Executes a compiled query and runs the result through all plugins' transformResult method. Results are streamead instead of loaded at once.

    Type Parameters

    • R

    Parameters

    Returns AsyncIterableIterator<QueryResult<R>>

  • 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.

    Type Parameters

    Parameters

    • node: T
    • queryId: QueryId

    Returns T

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

    Returns NoopQueryExecutor

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

    Parameters

    Returns NoopQueryExecutor

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

    Parameters

    Returns NoopQueryExecutor

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

    Parameters

    Returns NoopQueryExecutor

  • Returns a copy of this executor without any plugins.

    Returns NoopQueryExecutor