UNPKG

kysely

Version:
13 lines (12 loc) 533 B
import { DatabaseConnection } from './database-connection.js'; import { ConnectionProvider } from './connection-provider.js'; import { Driver } from './driver.js'; export declare class DefaultConnectionProvider implements ConnectionProvider { #private; constructor(driver: Driver); /** * 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>; }