@lpb-work/pi-storage-sqlite-node
v1.1.1
Published
Node sqlite storage backend for @lpb-work/pi-agent-core sessions
Downloads
419
Readme
@lpb-work/pi-storage-sqlite-node
Node sqlite storage backend for @lpb-work/pi-agent-core sessions. Provides the
node:sqlite adapter (SqliteDatabase implementation), SQLite session repository,
migrations, materialized views, and optional FTS search.
await using repository = new SqliteSessionRepository(options);
const search = createSqliteSessionSearch(options);
const session = await repository.create({ cwd });
const hits = await search.search({ text: "needle" });The repository lazily owns one shared database connection. Search is an independent, query-only projection over the same canonical database.
