Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SingleConnectionProvider

class SingleConnectionProvider implements ConnectionProvider {
constructor(connection: DatabaseConnection);
provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>;
}

§Implements

§Constructors

§
new SingleConnectionProvider(connection: DatabaseConnection)
[src]

§Methods

§
provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>
[src]

Provides a connection for the callback and takes care of disposing the connection after the callback has been run.