Expand description
Rust bindings to the TinyCDB library.
TinyCDB is a very fast and simple package for creating and reading constant databases, as introduced by Dan Bernstein in his cdb package.
CDB is a constant database, that is, it cannot be updated at a runtime, only rebuilt. Rebuilding is atomic operation and is very fast - much faster than of many other similar packages. Once created, CDB may be queried, and a query takes very little time to complete.
Structs§
- Cdb
- The
Cdbstruct represents an open instance of a CDB database. - CdbCreator
- The
CdbCreatorstruct is used while building a new CDB instance. - CdbError
- Our error type
- CdbIterator
- A
CdbIteratorallows iterating over all the keys in a CDB database.
Enums§
- CdbError
Kind - Kinds of errors that can be encountered.
- CdbPut
Mode CdbPutModerepresents the different behaviours that will be used when inserting a key into a database where the key already exists.
Type Aliases§
- CdbResult
- A specialized Result type that might contain a CdbError.