mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
| .. | ||
| scripts | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
@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
session collection (createSqliteSessionCollection, migrations, materialized views). The
collection lazily owns one shared database connection and implements AsyncDisposable.
await using collection = createSqliteSessionCollection(options);
const search = createSqliteSessionSearch(options);
const repository = createSessionRepository({ collection, search });