leveldb.db

D-LevelDB DateBase Object

This is the main database object. This object connects to a Leveldb database.

Members

Classes

DB
class DB

LevelDB DB

Examples

1 auto opt = new Options;
2 opt.create_if_missing = true;
3 auto db = new DB(opt, "/my/db/");
4 db.put(Slice("PI"), Slice.Ref!double(3.14));
5 double pi;
6 enforce(db.get(Slice("PI"), pi));
7 assert(pi == 3.14);

Todo: Add searching and transactions

Meta

Authors

Byron Heads

License

<a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.