MySQLEngineConfig
Defined in: engine.ts:28
Configuration for createMySQLEngine.
Properties
Section titled “Properties”client
Section titled “client”client:
Pool
Defined in: engine.ts:30
A mysql2/promise 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 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 } }),});