Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.PostgresDialectConfig

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.PostgresDialectConfig
Re-export
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { PostgresDialectConfig } = kysely;

Config for the PostgreSQL dialect.

Properties

pool: PostgresPool | (() => Promise<PostgresPool>)

A postgres Pool instance or a function that returns one.

If a function is provided, it's called once when the first query is executed.

https://node-postgres.com/apis/pool

https://github.com/brianc/node-postgres/tree/master/packages/pg-cursor

import Cursor from 'pg-cursor'
// or
import * as Cursor from 'pg-cursor'

new PostgresDialect({
 cursor: Cursor
})
optional
onCreateConnection: (connection: DatabaseConnection) => Promise<void>

Called once for each created connection.