Skip to content

PostgresEngineConfig

Defined in: engine.ts:28

Configuration for createPostgresEngine.

client: Pool

Defined in: engine.ts:30

A pg Pool instance.


optional dialect?: 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 } }),
});