package lmdb

  1. Overview
  2. Docs

Module Map.FlagsSource

Sourcetype t

The type of a set of flags

Sourceval (+) : t -> t -> t

a + b is the union of flag sets a and b. This corresponds to a bitwise or on C bitfields.

Sourceval (*) : t -> t -> t

a * b is the intersection of flag sets a and b. This corresponds to a bitwise and on C bitfields.

Sourceval test : t -> t -> bool

test a b is true only if a is a subset of b. This corresponds to a & b == a for C bitfields.

Sourceval unset : t -> t -> t

unset a b removes flags a from flag set b. This corresponds to a & ~b for C bitfields.

Sourceval eq : t -> t -> bool

eq a b The equals relation.

Sourceval of_int : int -> t
Sourceval to_int : t -> int
Sourceval none : t

none The empty set of flags.

Sourceval no_overwrite : t

Raise Exists if the key already exists no matter whether the map supports duplicates.

Sourceval 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.

Sourceval append : t

Add a key that is greater than any existing key. Used to efficiently add sorted data.

Sourceval 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.

Sourceval current : t
Sourceval reserve : t
Sourceval multiple : t
OCaml

Innovation. Community. Security.