Expand description
SQLite persistence layer for kindling.
Implements the cross-language schema contract from schema/schema.sql
against rusqlite with bundled SQLite + FTS5. WAL mode enabled,
per-project DB isolation under ~/.kindling/projects/<hash>/.
The public surface mirrors SqliteKindlingStore in
packages/kindling-store-sqlite — a database written by either
implementation is readable by the other.
Structs§
- Database
Stats - Aggregate database statistics returned by
SqliteKindlingStore::database_stats. - Evidence
Snippet - Evidence snippet with context. Mirrors
EvidenceSnippetin the TS store. - Schema
Version - Machine-readable schema version metadata from
schema/version.json. - Sqlite
Kindling Store - SQLite-based kindling store.
- Store
Options - Database open options.
Enums§
- Store
Error - Errors produced by the SQLite store.
Constants§
- DEFAULT_
SNIPPET_ MAX_ CHARS - Default maximum snippet length used by
SqliteKindlingStore::get_evidence_snippetscallers that have no opinion (matches the TS default parameter). - SCHEMA_
SQL - Canonical DDL — the state of the schema after all migrations.
Functions§
- default_
kindling_ home - Default kindling home (
~/.kindling), orNoneif no home directory can be determined. - open_
database - Open and initialize a kindling database at
path. - open_
in_ memory - Open an in-memory database with the full schema applied. Test helper and scratch-space convenience; never version-gated because it is always fresh.
- project_
db_ path - Database path for a project under the given kindling home directory:
<kindling_home>/projects/<project_id>/kindling.db. - project_
id - Stable 12-hex-char project identifier derived from the project root path.
- resolve_
db_ path - Resolve the database path for a project root, honouring the
KINDLING_DB_PATHenvironment override used by the Claude Code plugin. - schema_
version - The schema version this crate was compiled against.