Module

x/kysely_postgrs_js_dialect/deps.ts>kysely.ConnectionProvider

Kysely dialect for PostgreSQL using the Postgres.js client.
interface kysely.ConnectionProvider
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ConnectionProvider } = kysely;

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.

import kysely.ConnectionProvider
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/deps.ts";
const { ConnectionProvider } = kysely;