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

Module IO.UnixSource

Sourcetype t
type path := string
Sourceval v : version:Version.t option -> fresh:bool -> readonly:bool -> path -> t
Sourceval name : t -> string
Sourceval clear : ?keep_generation:unit -> t -> unit
Sourceval append : t -> string -> unit
Sourceval set : t -> off:Optint.Int63.t -> string -> unit
Sourceval read : t -> off:Optint.Int63.t -> bytes -> int
Sourceval read_buffer : t -> off:Optint.Int63.t -> buf:bytes -> len:int -> int
Sourceval offset : t -> Optint.Int63.t
Sourceval generation : t -> Optint.Int63.t
Sourceval force_headers : t -> Irmin_pack__.IO_intf.headers
Sourceval readonly : t -> bool
Sourceval version : t -> Version.t
Sourceval flush : t -> unit
Sourceval close : t -> unit
Sourceval exists : string -> bool
Sourceval size : t -> int
Sourceval truncate : t -> unit

Sets the length of the underlying IO to be 0, without actually purging the associated data. Not supported for stores beyond `V1, which should use clear instead.

Sourceval migrate : progress:(Optint.Int63.t -> unit) -> t -> Version.t -> (unit, [> `Msg of string ]) result
  • raises Invalid_arg

    if the migration path is not supported.

OCaml

Innovation. Community. Security.