package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.10.0.tbz
sha256=92a9de7a0a2a35c2feba0c35a806b1f0df24c1c0d15164eebf3f919296d26715
sha512=0203ec5117a851ad5afeb2f9091659b4e142e231b6b945caab93f4d7beb23397c8ac43f7056e91d18f4bff0be1062f6ae966d221f877c229328c0cbbf29fd9f0

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.