Skip to main content

Crate kindling_store

Crate kindling_store 

Source
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§

DatabaseStats
Aggregate database statistics returned by SqliteKindlingStore::database_stats.
EvidenceSnippet
Evidence snippet with context. Mirrors EvidenceSnippet in the TS store.
SchemaVersion
Machine-readable schema version metadata from schema/version.json.
SqliteKindlingStore
SQLite-based kindling store.
StoreOptions
Database open options.

Enums§

StoreError
Errors produced by the SQLite store.

Constants§

DEFAULT_SNIPPET_MAX_CHARS
Default maximum snippet length used by SqliteKindlingStore::get_evidence_snippets callers 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), or None if 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_PATH environment override used by the Claude Code plugin.
schema_version
The schema version this crate was compiled against.

Type Aliases§

StoreResult