Crate leveldb_rs [] [src]

Rust bindings for LevelDB, a fast and lightweight key/value database library from Google.

Warning: Some portions of this library are still unsafe to use, in that it is possible to call methods from LevelDB with stale pointers, or otherwise cause memory-unsafety. If you'd like to avoid this, and until I fix them, please don't use:

  • Custom comparators
  • DB snapshots

And please be careful with write batches. Patches are welcome!

Structs

DB

This struct represents an open instance of the database.

DBComparator

This structure represents a comparator for use in LevelDB.

DBIterator

This structure represents an iterator over the database. Note that since the next() function is bounded by a lifetime, it does not (quite) conform to the Iterator trait. To get this, use the alloc() helper.

DBIteratorAlloc

An iterator over a database that implements the standard library's Iterator trait.

DBOptions

This structure represents options that can be used when constructing a LevelDB instance.

DBReadOptions

This structure represents options that can be used when reading from a LevelDB instance.

DBSnapshot

An immutable snapshot of the database at a point in time.

DBWriteBatch

A write batch holds a collection of updates to apply atomically to a database. Updates are applied in the order in which they are added to the write batch.

DBWriteOptions

This structure represents options that can be used when writing to a LevelDB instance.

Enums

LevelDBError

Our error type

Type Definitions

LevelDBResult

An alias for Result<T, LevelDBError>