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-3.7.2.tbz
sha256=6aa5ba4c6a0233747d4bd3ab396f2b3a33bb80f9d8ed4a178c83a035033c0e52
sha512=8a5506a57e8569a11c883ca25b3c60ae7a9a03c2da111668193d7b4296434c43f1a310e78f189e4b38c234da790259d2961c6a0ae481282c18bb97f618fccfb6

doc/irmin.mem/Irmin_mem/KV/Make/Branch/index.html

Module Make.BranchSource

Manipulate branches.

Branch Store

Manipulate relations between branches and commits.

Sourceval mem : repo -> branch -> bool Lwt.t

mem r b is true iff b is present in r.

Sourceval find : repo -> branch -> commit option Lwt.t

find r b is Some c iff c is bound to b in t. It is None if b is not present in t.

Sourceval get : repo -> branch -> commit Lwt.t

get t b is similar to find but raise Invalid_argument if b is not present in t.

Sourceval set : repo -> branch -> commit -> unit Lwt.t

set t b c bounds c to b in t.

Sourceval remove : repo -> branch -> unit Lwt.t

remove t b removes b from t.

Sourceval list : repo -> branch list Lwt.t

list t is the list of branches present in t.

Sourceval watch : repo -> branch -> ?init:commit -> (commit Irmin.Diff.t -> unit Lwt.t) -> watch Lwt.t

watch t b f calls f on every change in b.

Sourceval watch_all : repo -> ?init:(branch * commit) list -> (branch -> commit Irmin.Diff.t -> unit Lwt.t) -> watch Lwt.t

watch_all t f calls f on every branch-related change in t, including creation/deletion events.

Base functions for branches.

include Irmin.Branch.S with type t = branch

Signature for Branches

Sourcetype t = branch

The type for branches.

Sourceval main : t

The name of the main branch.

Sourceval is_valid : t -> bool

Check if the branch is valid.

OCaml

Innovation. Community. Security.