Optional
cursorhttps://github.com/brianc/node-postgres/tree/master/packages/pg-cursor
import { PostgresDialect } from 'kysely'
import { Pool } from 'pg'
import Cursor from 'pg-cursor'
// or import * as Cursor from 'pg-cursor'
new PostgresDialect({
cursor: Cursor,
pool: new Pool('postgres://localhost:5432/mydb')
})
Optional
onCalled once for each created connection.
Optional
onCalled every time a connection is acquired from the pool.
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.
Config for the PostgreSQL dialect.