kysely
    Preparing search index...

    Interface DatabaseConnection

    A single connection to the database engine.

    These are created by an instance of Driver.

    interface DatabaseConnection {
        cancelQuery?(
            controlConnectionProvider: ControlConnectionProvider,
        ): Promise<void>;
        collectSessionInfo?(): Promise<void>;
        executeQuery<R>(
            compiledQuery: CompiledQuery,
            options?: AbortableOperationOptions,
        ): Promise<QueryResult<R>>;
        killSession?(
            controlConnectionProvider: ControlConnectionProvider,
        ): Promise<void>;
        streamQuery<R>(
            compiledQuery: CompiledQuery,
            chunkSize: number,
            options?: AbortableOperationOptions,
        ): AsyncIterableIterator<QueryResult<R>>;
    }

    Implemented by

    Index

    Methods

    • Used by executors to prepare the connection for operations on the database side.

      Returns Promise<void>