package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.10.2.tbz
sha256=088741b619471c8198e74aaf9f4aeb4a9997abec8b9abcbfb3443fd27bfb433f
sha512=bbc03417d6eb87d99bee391c489d23a586b0a260e4c797f5e2465c3ab67cb627a9efa526097c1b89dd3339eafb8bad738c1cf0502e5c70355871ff7dbba324b9

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.