kysely
Version:
Type safe SQL query builder
9 lines (8 loc) • 344 B
TypeScript
import { DatabaseConnection } from './database-connection.js';
export interface ConnectionProvider {
/**
* 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>;
}