package irmin

  1. Overview
  2. Docs
Irmin, a distributed database that follows the same design principles as Git

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.9.0.tbz
sha256=7af11e14d312b9ae340997f8c27907b9fc9a0d19539fb643e1820d5183a76750
sha512=d7b61c6fddab0a8b61efe867b9a0fdc14c01eb1adeda2f5018b8dfee306c8324c77dd648c7cb9860e62a26e224955f9331b49d19cb693ad5d773efc53263d9fd

doc/irmin.mem/Irmin_mem/KV/Key/index.html

Module KV.KeySource

Key provides base functions for the stores's paths.

Path

Sourcetype t = key

The type for path values.

Sourcetype step = step

Type type for path's steps.

Sourceval empty : t

The empty path.

Sourceval v : step list -> t

Create a path from a list of steps.

Sourceval is_empty : t -> bool

Check if the path is empty.

Sourceval cons : step -> t -> t

Prepend a step to the path.

Sourceval rcons : t -> step -> t

Append a step to the path.

Sourceval decons : t -> (step * t) option

Deconstruct the first element of the path. Return None if the path is empty.

Sourceval rdecons : t -> (t * step) option

Deconstruct the last element of the path. Return None if the path is empty.

Sourceval map : t -> (step -> 'a) -> 'a list

map t f maps f over all steps of t.

Value Types

t is the value type for t.

step_t is the value type for step.

OCaml

Innovation. Community. Security.