Skip to content

SQLiteEngineConfig

Configuration for createSQLiteEngine.

client: Database

A better-sqlite3 Database instance.


optional dialect?: Dialect

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

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