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

Module Irmin_pack.VersionSource

Management of disk-format versions.

`V2 introduced the *_v2 kinds and deprecated the *_v1 ones. The upgrade of a pack file to `V2 was done silently the first time a used pushed a *_v2 entry to the pack file.

`V3 introduced the control file. It centralizes all the metadata that used to be contained in the header of other files (e.g. the version of the store used to be stored in each files, it is now solely stored in the control file). The upgrade of a store to `V3 was done silently when opening a store in rw mode.

`V4 introduced the chunked suffix. Upgrade from `V3 happened on first write to the control file.

`V5 introduced the lower layer. Upgrade happened on first write to the control file.

See `doc/irmin-pack/version-history.md` for other documentation.

Sourcetype t = [
  1. | `V1
  2. | `V2
  3. | `V3
  4. | `V4
  5. | `V5
]

The type for version numbers.

Sourceval to_int : t -> int
Sourceval compare : t -> t -> int
Sourceval latest : t
Sourceval pp : t Fmt.t

pp is the pretty-format for version numbers.

Sourceval to_bin : t -> string

to_bin t is the 8-bytes binary representation of t.

Sourceval of_bin : string -> t option

of_bin s is Some t is to_bin t is s and None otherwise.

Sourceval invalid_arg : string -> 'a

invalid_arg str raises Invalid_argument.

Sourceexception Invalid of {
  1. expected : t;
  2. found : t;
}
OCaml

Innovation. Community. Security.