DB

LevelDB DB

Constructors

this
this()
Undocumented in source.
this
this(string path, Options opt)

Opens a new connection to a levelDB database on creation

Destructor

~this
~this()

Force database to close on destruction, cleans up library memory

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

find
V find(K key, V def, const(ReadOptions) opt)
Undocumented in source. Be warned that the author may not have intended to support it.
get
bool get(K key, V val, const(ReadOptions) opt)
Undocumented in source. Be warned that the author may not have intended to support it.
put
auto ref put(K key, V val, const(WriteOptions) opt)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

close
auto ref close [@property getter]

Close DB connection, also frees _db pointer in leveldb lib

del
auto ref del(K key, const(WriteOptions) opt)
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen [@property getter]

Tests if the database is open

open
void open(string path, Options opt)

Opens a new connection to a levelDB database

Static functions

destroy
void destroy(string path, const(Options) opt)

Destory/delete a non-locked leveldb

repair
void repair(Options opt, string path)

Attempt to repair a non-locked leveldb

Throws

LeveldbException on errors

Meta