leveldb.db

* D-LevelDB DateBase Object * * This is the main database object. This object connects to a Leveldb database. * * Copyright: Copyright © 2013 Byron Heads * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Byron Heads * * Example:

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

* Todo: Add searching and transactions

Members

Classes

DB
class DB

LevelDB DB

Static variables

tempPath
const(string) tempPath;
Undocumented in source.

Meta