mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Document complete session store and search composition for scanning and canonical SQLite search.
584 B
584 B
@earendil-works/pi-storage-sqlite-node
Node sqlite storage backend for @earendil-works/pi-agent-core sessions. Provides the
node:sqlite adapter (SqliteDatabase implementation) and the SQLite session
store implementation (createSqliteSessionStore, migrations, materialized views). The store
lazily owns one shared database connection and implements AsyncDisposable.
await using store = createSqliteSessionStore(options);
const search = createSqliteSessionSearch({ ...options, mode: "canonical" });
const repository = createSessionRepository({ store, search });