Skip to main content

Crate thingdb

Crate thingdb 

Source
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.
CacheOptions
Configuration for a MemoryCache.
CacheStats
Counters and bounded-resource state reported by a MemoryCache.
Database
A shared ThingDB database handle.
DatabaseBuilder
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.
KeyspaceCreateOptions
Keyspace creation options reserved for future per-keyspace tuning.
MemoryCache
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.
SnapshotKeyspace
A keyspace view over a consistent snapshot.
WalDiagnostics
Bounded WAL and recovery diagnostics for local measurements.

Enums§

PersistMode
Durability mode for a database flush.

Type Aliases§

Result
Result type returned by ThingDB.