Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.Transaction#connection

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

Provides a kysely instance bound to a single database connection.

Examples

await db
  .connection()
  .execute(async (db) => {
    // `db` is an instance of `Kysely` that's bound to a single
    // database connection. All queries executed through `db` use
    // the same connection.
    await doStuff(db)
  })