package irmin-pack

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.