Skip to main content
Module

x/kysely_deno_postgres_dialect/deps.ts>kysely.SingleConnectionProvider

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
class kysely.SingleConnectionProvider
implements ConnectionProvider
import { kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/deps.ts";
const { SingleConnectionProvider } = kysely;

Constructors

new
SingleConnectionProvider(connection: DatabaseConnection)

Methods

provideConnection<T>(consumer: (connection: DatabaseConnection) => Promise<T>): Promise<T>

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