package irmin-pack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type path := string
val v : version:Version.t option -> fresh:bool -> readonly:bool -> path -> t
val name : t -> string
val clear : ?keep_generation:unit -> t -> unit
val append : t -> string -> unit
val set : t -> off:Optint.Int63.t -> string -> unit
val read : t -> off:Optint.Int63.t -> bytes -> int
val read_buffer : t -> off:Optint.Int63.t -> buf:bytes -> len:int -> int
val offset : t -> Optint.Int63.t
val generation : t -> Optint.Int63.t
val force_headers : t -> Irmin_pack__.IO_intf.headers
val readonly : t -> bool
val version : t -> Version.t
val flush : t -> unit
val close : t -> unit
val exists : string -> bool
val size : t -> int
val 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.

val 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.