Interface PostgresDialectConfig

Config for the PostgreSQL dialect.


  • PostgresDialectConfig


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

new PostgresDialect({
cursor: Cursor
onCreateConnection?: ((connection) => Promise<void>)

Type declaration

    • (connection): Promise<void>
    • Called once for each created connection.


      Returns Promise<void>

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.

Type declaration

Generated using TypeDoc