package lmdb

  1. Overview
  2. Docs

Module Conv.FlagsSource

Flags describing the (sorting) properties of keys and values of a map.

See the LMDB documentation for the meaning of these flags.

You probably won't need those flags since the converters provided in Conv will already make appropriate use of these flags.

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 reverse_key : t
Sourceval dup_sort : t
Sourceval integer_key : t
Sourceval dup_fixed : t
Sourceval integer_dup : t
Sourceval reverse_dup : t
Sourceval create : t