Module

x/kysely_postgrs_js_dialect/deps.ts>Transaction#connection

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

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)
  })

Returns

ConnectionBuilder<DB>