index
index
#
The SQLite index: one file, three tables, every write inside one immediate transaction.
- [.database][] —
Database, the connection, its writetransactionand its snapshotread; the schema version stamped into the file. - [.objects][] — the
objectstable: every sealed tree and the facts eviction ranks it by (size, compute cost, use score). - [.names][] — the
namestable:call:<key>/<position>for a memoized result,state:<key>for a state's current version (kept). - [.pins][] — the
pinstable: which living process holds which object. - [.file_hashes][] — the stat-keyed
HashCachethat lets an unchanged tree hash without being re-read, in its own file so hashing never waits on the index.
The table modules are free functions over a connection handed out by
Database.transaction or Database.read. This __init__ is documentation-only; internal
modules import from the leaf modules directly.