package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.7.1.tbz
sha256=fac7c032f472fb369378ad2d8fe77e7cd3b3c1c6a0d7bf59980b69528891b399
sha512=06db1c4e90d43bdfbea2d4f15037eef77207877c05019a6ce0f7f7771afe7d9200da019e3d845ff98ee86947f3e538e1521d818e6d6ddd97105fcaeb746fe418

doc/irmin-pack.layered/Irmin_pack_layered/Maker/Contents/index.html

Module Maker.Contents

Contents provides base functions for the store's contents.

Signature for store contents

type t = contents

The type for user-defined contents.

val t : t Irmin__.Type.t
val merge : t option Irmin__.Merge.t

Merge function. Evaluates to `Conflict msg if the values cannot be merged properly. The arguments of the merge function can take None to mean that the key does not exists for either the least-common ancestor or one of the two merging points. The merge function returns None when the key's value should be deleted.

Import/Export

val hash : contents -> hash

hash c it c's hash in the repository r.

val of_hash : repo -> hash -> contents option Lwt.t

of_hash r h is the the contents object in r having h as hash, or None is no such contents object exists.

OCaml

Innovation. Community. Security.