package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.5.2.tbz
sha256=2a1e6a7577e498fbfeb678d666da210dc48d1344637e8ecb653e1dd88c640b5f
sha512=3fb6f49a1af2f8bab1df5b6f5affaaa09f09fe892a08eb2d9de58138e56646d4a6797f3c087b22875e36e3411218ab2435fe5437ac78f323dd661932af021fad

doc/irmin-pack.mem/Irmin_pack_mem/Maker/Make/Backend/Slice/index.html

Module Backend.Slice

A slice abstraction.

Slices

type t = slice

The type for slices.

val t : t Irmin__.Type.t
type contents = Contents.hash * Contents.value

The type for exported contents.

val contents_t : contents Irmin__.Type.t
type node = Node.hash * Node.value

The type for exported nodes.

val node_t : node Irmin__.Type.t
type commit = Commit.hash * Commit.value

The type for exported commits.

val commit_t : commit Irmin__.Type.t
type value = [
  1. | `Contents of contents
  2. | `Node of node
  3. | `Commit of commit
]

The type for exported values.

val value_t : value Irmin__.Type.t
val empty : unit -> t Lwt.t

Create a new empty slice.

val add : t -> value -> unit Lwt.t

add t v adds v to t.

val iter : t -> (value -> unit Lwt.t) -> unit Lwt.t

iter t f calls f on all values of t.

OCaml

Innovation. Community. Security.

On This Page
  1. Slices