Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.SingleConnectionProvider#provideConnection

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
method kysely.SingleConnectionProvider.prototype.provideConnection
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { SingleConnectionProvider } = kysely;

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

Parameters

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

Returns

Promise<T>