package irmin-pack

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

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-3.5.2.tbz
sha256=2a1e6a7577e498fbfeb678d666da210dc48d1344637e8ecb653e1dd88c640b5f
sha512=3fb6f49a1af2f8bab1df5b6f5affaaa09f09fe892a08eb2d9de58138e56646d4a6797f3c087b22875e36e3411218ab2435fe5437ac78f323dd661932af021fad

doc/irmin-pack.unix/Irmin_pack_unix/Maker/Make/File_manager/Index/Io/index.html

Module Index.IoSource

Sourcetype t = Io.t
Sourcetype misc_error = Io.misc_error
Sourceval misc_error_t : misc_error Irmin.Type.t
Sourcetype create_error = [
  1. | `File_exists of string
  2. | `Io_misc of misc_error
]
Sourcetype open_error = [
  1. | `Io_misc of misc_error
  2. | `No_such_file_or_directory
  3. | `Not_a_file
]
Sourcetype read_error = [
  1. | `Closed
  2. | `Invalid_argument
  3. | `Io_misc of misc_error
  4. | `Read_out_of_bounds
]
Sourcetype write_error = [
  1. | `Closed
  2. | `Io_misc of misc_error
  3. | `Ro_not_allowed
]
Sourcetype close_error = [
  1. | `Double_close
  2. | `Io_misc of misc_error
]
Sourcetype mkdir_error = [
  1. | `File_exists of string
  2. | `Invalid_parent_directory
  3. | `Io_misc of misc_error
  4. | `No_such_file_or_directory
]
Sourceval create : path:string -> overwrite:bool -> (t, [> create_error ]) result
Sourceval open_ : path:string -> readonly:bool -> (t, [> open_error ]) result
Sourceval close : t -> (unit, [> close_error ]) result
Sourceval write_string : t -> off:Optint.Int63.t -> string -> (unit, [> write_error ]) result
Sourceval fsync : t -> (unit, [> write_error ]) result
Sourceval move_file : src:string -> dst:string -> (unit, [> `Sys_error of string ]) result
Sourceval copy_file : src:string -> dst:string -> (unit, [> `Sys_error of string ]) result
Sourceval mkdir : string -> (unit, [> mkdir_error ]) result
Sourceval read_to_string : t -> off:Optint.Int63.t -> len:int -> (string, [> read_error ]) result
Sourceval read_all_to_string : t -> (string, [> `Closed | `Io_misc of misc_error ]) result
Sourceval read_size : t -> (Optint.Int63.t, [> read_error ]) result
Sourceval size_of_path : string -> (Optint.Int63.t, [> `Io_misc of misc_error | `No_such_file_or_directory | `Not_a_file ]) result
Sourceval classify_path : string -> [> `Directory | `File | `No_such_file_or_directory | `Other ]
Sourceval readonly : t -> bool
Sourceval path : t -> string
Sourceval page_size : int
Sourceval read_exn : t -> off:Optint.Int63.t -> len:int -> bytes -> unit
Sourceval write_exn : t -> off:Optint.Int63.t -> len:int -> string -> unit
Sourceval raise_misc_error : misc_error -> 'a
Sourceval catch_misc_error : (unit -> 'a) -> ('a, [> `Io_misc of misc_error ]) result
OCaml

Innovation. Community. Security.