pi-mono/packages/storage/sqlite-node/README.md
2026-07-31 18:31:04 +03:00

558 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);
const repository = createSessionRepository({ store, search });