package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. vc : Vc.t;
  2. enc : Fs_nameenc.t;
}
val create : ?hashcons:Hashcons.config -> ?node_cache:Index.t Node_cache.t -> ?lock:bool -> ?resize_step_bytes:int -> ?auto_flush_seconds:int -> Context.config -> Fs_nameenc.t -> string -> (t, Error.t) Result.t Lwt.t
val open_existing_for_read : ?hashcons:Hashcons.config -> ?node_cache:Index.t Node_cache.t -> Context.config -> Fs_nameenc.t -> string -> (t, Error.t) Result.t Lwt.t
val open_for_write : ?hashcons:Hashcons.config -> ?node_cache:Index.t Node_cache.t -> ?resize_step_bytes:int -> ?auto_flush_seconds:int -> Context.config -> Fs_nameenc.t -> string -> (t, Error.t) Result.t Lwt.t
val close : t -> (unit, Error.t) Stdlib.result Lwt.t
val commit_db : t -> Commit_db.t
val context : t -> Context.t
val empty : t -> Fs_impl.cursor
val of_value : t -> Value.t -> Fs_impl.cursor
val checkout : t -> Commit_hash.t -> Fs_impl.cursor option Lwt.t
val checkout' : t -> Commit_hash.t -> (Commit.t * Fs_impl.cursor) option Lwt.t
val compute_commit_hash : t -> parent:Commit_hash.t option -> Fs_impl.cursor -> Fs_impl.cursor * Commit_hash.t
val commit : ?allow_missing_parent:bool -> t -> parent:Commit_hash.t option -> hash_override:Commit_hash.t option -> Fs_impl.cursor -> (Fs_impl.cursor * (Hash.Prefix.t * Commit.t), Error.t) Result.t Lwt.t
val flush : t -> unit Lwt.t
val mem : t -> Commit_hash.t -> bool Lwt.t
OCaml

Innovation. Community. Security.