irmin-pack

Irmin backend which stores values in a pack file
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library irmin-pack.unix
Module Irmin_pack_unix . KV . Maker . Make . Control . Io
type t = Io.t
type misc_error = Io.misc_error
val misc_error_t : misc_error Irmin.Type.t
type create_error = [
| `File_exists of string
| `Io_misc of misc_error
]
type open_error = [
| `Io_misc of misc_error
| `No_such_file_or_directory
| `Not_a_file
]
type read_error = [
| `Invalid_argument
| `Io_misc of misc_error
| `Read_on_closed
| `Read_out_of_bounds
]
type write_error = [
| `Io_misc of misc_error
| `Ro_not_allowed
| `Write_on_closed
]
type close_error = [
| `Double_close
| `Io_misc of misc_error
]
type mkdir_error = [
| `File_exists of string
| `Invalid_parent_directory
| `Io_misc of misc_error
| `No_such_file_or_directory
]
val create : path:string -> overwrite:bool -> ( t, [> create_error ] ) result
val open_ : path:string -> readonly:bool -> ( t, [> open_error ] ) result
val close : t -> ( unit, [> close_error ] ) result
val write_string : t -> off:Optint.Int63.t -> string -> ( unit, [> write_error ] ) result
val fsync : t -> ( unit, [> write_error ] ) result
val move_file : src:string -> dst:string -> ( unit, [> `Sys_error of string ] ) result
val mkdir : string -> ( unit, [> mkdir_error ] ) result
val read_to_string : t -> off:Optint.Int63.t -> len:int -> ( string, [> read_error ] ) result
val read_size : t -> ( Optint.Int63.t, [> read_error ] ) result
val classify_path : string -> [> `Directory | `File | `No_such_file_or_directory | `Other ]
val readonly : t -> bool
val path : t -> string
val page_size : int
val read_exn : t -> off:Optint.Int63.t -> len:int -> bytes -> unit
val write_exn : t -> off:Optint.Int63.t -> len:int -> string -> unit
val raise_misc_error : misc_error -> 'a
val catch_misc_error : ( unit -> 'a ) -> ( 'a, [> `Io_misc of misc_error ] ) result