PostgresEngineConfig
Defined in: engine.ts:28
Configuration for createPostgresEngine.
Properties
Section titled “Properties”client
Section titled “client”client:
Pool
Defined in: engine.ts:30
A pg Pool instance.
dialect?
Section titled “dialect?”
optionaldialect?:Dialect
Defined in: engine.ts:46
Override the default dialect used to translate AIP-160 filter
expressions into PostgreSQL SQL. Defaults to @protoutil/aipql’s
postgres function.
import { postgres } from "@protoutil/aipql";
const engine = createPostgresEngine({ client: pool, dialect: (expr) => postgres(expr, { functions: { string_matches: myHandler } }),});