Skip to content

PostgresEngineConfig

Configuration for createPostgresEngine.

client: Pool

A pg Pool instance.


optional dialect?: Dialect

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