UNPKG

kysely

Version:
12 lines (11 loc) 510 B
import { DatabaseConnection } from './database-connection.js'; import { ConnectionProvider } from './connection-provider.js'; export declare class SingleConnectionProvider implements ConnectionProvider { #private; constructor(connection: DatabaseConnection); /** * Provides a connection for the callback and takes care of disposing * the connection after the callback has been run. */ provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>; }