Module Lmdb_bindings.PutFlags
include Flags
val (+) : t -> t -> t
a + b
is the union of flag setsa
andb
. This corresponds to a bitwise or on C bitfields.
val (*) : t -> t -> t
a * b
is the intersection of flag sets a and b. This corresponds to a bitwise and on C bitfields.
val test : t -> t -> bool
test a b
istrue
only ifa
is a subset ofb
. This corresponds toa & b == a
for C bitfields.
val unset : t -> t -> t
unset a b
removes flagsa
from flag setb
. This corresponds toa & ~b
for C bitfields.
val none : t
none
The empty set of flags.
val no_overwrite : t
Raise
Exists
if the key already exists no matter whether the map supports duplicates.
val no_dup_data : t
Only for maps supporting duplicates: Don't add the value to an already existing key if this value is already part of this key.
val append : t
Add a key that is greater than any existing key. Used to efficiently add sorted data.
val append_dup : t
Add value to key that is greater than any existing value of this key. Used to efficiently add sorted values to a key.