Expand description
Embedded, ordered byte key-value storage that can be used independently of Thingd.
The initial format is intentionally small and conservative: a checksummed write-ahead log provides crash recovery, while immutable sorted table snapshots bound WAL growth. The durable file format remains experimental until ThingDB 1.0; users should retain independent backups before then.
Structs§
- Batch
- A write batch applied atomically to all included keyspaces.
- Cache
Options - Configuration for a
MemoryCache. - Cache
Stats - Counters and bounded-resource state reported by a
MemoryCache. - Database
- A shared ThingDB database handle.
- Database
Builder - Builder for opening a ThingDB database.
- Entry
- An owned key/value returned by an iterator.
- Error
- ThingDB error.
- Iter
- An owned iterator over keyspace entries.
- Keyspace
- A named ordered keyspace in a database.
- Keyspace
Create Options - Keyspace creation options reserved for future per-keyspace tuning.
- Memory
Cache - A bounded, TTL-aware, process-local LRU cache.
- RamDiagnostics
- Timing and allocation-adjacent counters for the RAM-only keyspace path.
- Snapshot
- A consistent read snapshot.
- Snapshot
Keyspace - A keyspace view over a consistent snapshot.
- WalDiagnostics
- Bounded WAL and recovery diagnostics for local measurements.
Enums§
- Persist
Mode - Durability mode for a database flush.
Type Aliases§
- Result
- Result type returned by ThingDB.