package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = Plebeia.Vc.t
val create : ?hashcons:Plebeia.Hashcons.config -> ?node_cache:Plebeia.Index.t Plebeia.Node_cache.t -> ?lock:bool -> ?bytes_per_cell:int -> ?hash_func:[ `Blake2B | `Blake3 ] -> ?bytes_per_hash:int -> ?resize_step_bytes:int -> ?auto_flush_seconds:int -> string -> (Plebeia.Vc.t, Plebeia.Error.t) Plebeia.Result_lwt.t
val open_ : mode:Plebeia.Storage.mode -> ?hashcons:Plebeia.Hashcons.config -> ?node_cache:Plebeia.Index.t Plebeia.Node_cache.t -> ?bytes_per_cell:int -> ?hash_func:[ `Blake2B | `Blake3 ] -> ?bytes_per_hash:int -> ?resize_step_bytes:int -> ?auto_flush_seconds:int -> string -> (Plebeia.Vc.t, Plebeia.Error.t) Plebeia.Result_lwt.t
val close : Plebeia.Vc.t -> (unit, Plebeia.Error.t) Stdlib.result Lwt.t
val empty : Plebeia.Vc.t -> cursor
val of_value : Plebeia.Vc.t -> bytes -> cursor
val checkout : Plebeia.Vc.t -> Plebeia.Commit_hash.t -> cursor option Lwt.t
val checkout' : Plebeia.Vc.t -> Plebeia.Commit_hash.t -> (Plebeia.Commit.t * cursor) option Lwt.t
val compute_commit_hash : Plebeia.Vc.t -> parent:Plebeia.Commit_hash.t option -> cursor -> cursor * Plebeia.Commit_hash.t
val commit : ?allow_missing_parent:bool -> Plebeia.Vc.t -> parent:Plebeia.Commit_hash.t option -> hash_override:Plebeia.Commit_hash.t option -> cursor -> (cursor * (Plebeia.Hash.Prefix.t * Plebeia.Commit.t), Plebeia.Error.t) Plebeia.Result.t Lwt.t
val flush : Plebeia.Vc.t -> unit Lwt.t
val mem : Plebeia.Vc.t -> Plebeia.Commit_hash.t -> bool Lwt.t
OCaml

Innovation. Community. Security.