MemoryStore.Group
val create : ?attrs:Yojson.Safe.t -> t -> Zarr.Node.Group.t -> unit Deferred.t
create ?attrs t node
creates a group node in store t
containing attributes attrs
. This is a no-op if node
is already a member of this store.
val metadata : t -> Zarr.Node.Group.t -> Zarr.Metadata.Group.t Deferred.t
metadata node t
returns the metadata of group node node
.
val children :
t ->
Zarr.Node.Group.t ->
(Zarr.Node.Array.t list * Zarr.Node.Group.t list) Deferred.t
children t n
returns a tuple of child nodes of group node n
. This operation returns a pair of empty lists if node n
has no children or is not a member of store t
.
val delete : t -> Zarr.Node.Group.t -> unit Deferred.t
delete t n
erases group node n
from store t
. This also erases all child nodes of n
. If node n
is not a member of store t
then this is a no-op.
val exists : t -> Zarr.Node.Group.t -> bool Deferred.t
exists t n
returns true
if group node n
is a member of store t
and false
otherwise.
val rename : t -> Zarr.Node.Group.t -> string -> unit Deferred.t
rename t g name
changes the name of group node g
in store t
to name
.