Skip to content

MySQLEngineConfig

Defined in: engine.ts:28

Configuration for createMySQLEngine.

client: Pool

Defined in: engine.ts:30

A mysql2/promise Pool instance.


optional dialect?: Dialect

Defined in: engine.ts:46

Override the default dialect used to translate AIP-160 filter expressions into MySQL SQL. Defaults to @protoutil/aipql’s mysql function.

import { mysql } from "@protoutil/aipql";
const engine = createMySQLEngine({
client: pool,
dialect: (expr) => mysql(expr, { functions: { string_matches: myHandler } }),
});