/opt/canhelp/node_modules/kysely/dist/cjs/driver
Edit: /opt/canhelp/node_modules/kysely/dist/cjs/driver/single-connection-provider.d.ts (520B)
import type { DatabaseConnection } from './database-connection.js';
import type { 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
(consumer: (connection: DatabaseConnection) => Promise): Promise;
}