package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.6.0.tbz
sha256=1db134221e82c424260a0e206b640fcb82902be35eea4137af2bcd9c98d3ac0f
sha512=b334e5b909563787e58790e4665f78a9f21e0f9f976eb7344cb76cbe7db870506bab193cec206e338ba74457896b2176000c936397cf3d44326507300a8193d6

doc/irmin-pack/Irmin_pack/Private/IO/Unix/index.html

Module IO.UnixSource

Sourcetype t
type path := string
Sourceexception RO_Not_Allowed
Sourceval v : version:[ `V1 | `V2 ] 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:int64 -> string -> unit
Sourceval read : t -> off:int64 -> bytes -> int
Sourceval offset : t -> int64
Sourceval generation : t -> int64
Sourceval force_headers : t -> Irmin_pack__.IO_intf.headers
Sourceval readonly : t -> bool
Sourceval version : t -> [ `V1 | `V2 ]
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:(int64 -> unit) -> t -> [ `V1 | `V2 ] -> (unit, [> `Msg of string ]) result
  • raises Invalid_arg

    if the migration path is not supported.

Sourceval read_buffer : chunk:int -> off:int64 -> t -> string
OCaml

Innovation. Community. Security.