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/Repo/index.html

Module Backend.Repo

A repo abstraction.

type t = repo

Repo opening and closing functions

val v : Irmin__.Conf.t -> t Lwt.t

v config is a function returning fresh store handles, with the configuration config, which is provided by the backend.

val close : t -> unit Lwt.t

close t frees up all the resources associated with t. Any operations run on a closed handle will raise Closed.

Getters from repo to backend store in ro mode

val contents_t : t -> Irmin__.Import.read Contents.t
val node_t : t -> Irmin__.Import.read Node.t
val commit_t : t -> Irmin__.Import.read Commit.t
val config : t -> Irmin__.Conf.t
val batch : t -> (Irmin__.Import.read_write Contents.t -> Irmin__.Import.read_write Node.t -> Irmin__.Import.read_write Commit.t -> 'a Lwt.t) -> 'a Lwt.t

A getter from repo to backend stores in rw mode.

val branch_t : t -> Branch.t

A branch store getter from repo

OCaml

Innovation. Community. Security.