plebeia
Functional storage using Merkle Patricia tree
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package plebeia
-
plebeia
-
-
plebeia.msync
-
plebeia.test_utils
-
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library plebeia.test_utils
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 commit_db : Plebeia.Vc.t -> Plebeia.Commit_db.t
val context : Plebeia.Vc.t -> Plebeia.Context.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
ON THIS PAGE
No table of contents