openclaw/src/plugin-sdk/sqlite-worker-runtime.ts
2026-09-17 01:33:59 -07:00

28 lines
973 B
TypeScript

// SQLite backends use native primitives without loading host database lifecycle owners.
export type { Generated, Selectable } from "kysely";
export {
compileSqliteQueryBindings,
enableNodeSqliteKyselyStatementCache,
executeSqliteQuerySync,
executeSqliteQueryTakeFirstSync,
getNodeSqliteKysely,
iterateSqliteQuerySync,
prepareSqliteQuerySync,
sqliteStringSet,
} from "../infra/kysely-sync.js";
export {
openNodeSqliteDatabase,
resolveExistingSqliteFileUri,
supportsNodeSqliteExtensionLoading,
} from "../infra/node-sqlite.js";
export {
assertTransactionUsable,
runSqliteImmediateTransactionSync,
} from "../infra/sqlite-transaction.js";
export type {
SqliteWorkerBackend,
SqliteWorkerCommand,
SqliteWorkerOperations,
} from "../infra/sqlite-worker-contract.js";
export { requestSqliteWorkerOperationAdmission } from "../infra/sqlite-worker-operation-admission.js";
export { tableExists } from "../state/openclaw-state-db-schema-helpers.js";