Expand description
Concrete local persistence for the accepted source-preserving lexical archive.
The archive remains canonical. SQLite/FTS5 and optional disk Oxigraph/RocksDB are rebuildable indexes; this crate does not normalize spelling or merge sources.
Structs§
- Dictionary
Store - A complete dictionary store held on one validated read-only SQLite snapshot.
- EdgeHit
- One edge traversed by a cross-reference query.
- Search
Result - Complete, comparable result from one native query execution.
- Sqlite
Store - A synchronous SQLite/FTS5 database in a caller-owned directory.
Enums§
- Dictionary
Store Error - Failure to create or strictly open an immutable dictionary store.
- Dictionary
Store Invalidity - A typed reason that an existing dictionary store is not acceptable.
- Presence
State - Field-state selector for
SearchQuery::Field. - Search
Query - A finite, backend-independent query accepted by both local stores.
- Store
Error - Typed failure from opening, building, or querying a local native store.
Traits§
- Lexical
Store - Native disk-store API shared by the concrete backends.
Functions§
- archive_
sha256 - Computes the lowercase hexadecimal SHA-256 of archive bytes.
- record_
id - Computes the stable lowercase hexadecimal identifier used by this store for
one source record identity. The encoding is the byte-exact tuple
(snapshot namespace, snapshot SHA-256, locator), with each UTF-8 component prefixed by its big-endianu64byte length. It is not a content hash. - scan_
reference - Executes the separate in-memory full scan used as a correctness oracle.
- validate_
archive - Opens and validates the canonical versioned archive before building an index.