module fdb.context; import fdb.fdb_c, fdb.range, fdb.rangeinfo; alias WorkFunc = void delegate(shared IDatabaseContext ctx); shared interface IDatabaseContext { shared(Value) opIndex (in Key key); RecordRange opIndex (RangeInfo info); inout(Value) opIndexAssign (inout(Value) value, in Key key); void clear(in Key key); void clearRange(in RangeInfo info); void run(in WorkFunc func); }