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