Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.DefaultConnectionProvider

Kysely dialect for PostgreSQL using the Postgres.js client.
Go to Latest
class kysely.DefaultConnectionProvider
implements ConnectionProvider
import { kysely } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.4/deps.ts";
const { DefaultConnectionProvider } = kysely;

Constructors

new
DefaultConnectionProvider(driver: Driver)

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.