DB.find

finds an entry in the db or returns the default value Example

opt.create_if_missing = true; auto db = new DB(opt, "/my/db/"); db.put("user_1245_name", "John Smith); assert(db.find("user_1245_name", "") == "John Smith");

class DB
V
find
(
K
V
)
if (
!is(V == interface)
)

Throws

LeveldbException

Meta