Readonly
addressReadonly
behaviorReadonly
databaseProtected
Static
Readonly
DELETIONProtected
Static
globalProtected
Static
Readonly
INCLUSIONProtected
addOptional
key: ScalarKey | Muid | [Muid, Muid] | Addressable | [Addressable, Addressable]Optional
value: Value | Deletion | InclusionOptional
meta: MetaOptional
onContainer: MuidOptional
meta: Metaa promise that resolves to the address of the newly created deletion entry
Returns a promise that resolves to the most recent value set for the given key, or undefined.
Optional
asOf: AsOfundefined, a basic value, or a container
Optional
asOf: AsOfSets a key/value association in a directory. If a bundler is supplied, the function will add the entry to that bundler and return immediately (you'll need to addBundler manually in that case). If the caller does not supply a bundler, then one is created on the fly, and then this method will await on the bundler being added to the database instance. This is to allow simple console usage like: await myDirectory.set("foo", "bar");
Optional
meta: Metaa promise that resolves to the address of the newly created entry
Generates a JSON representation of the data in this container. Mostly intended for demo/debug purposes.
true to pretty print
Optional
asOf: AsOfeffective time
Optional
seen: Set<string>(internal use only! This prevents cycles from breaking things)
a JSON string
Dumps the contents of this directory into a javascript Map; mostly useful for debugging though also could be used to create a backup of a database.
Optional
asOf: AsOfeffective time to get the dump for, or undefined for the present
a javascript map from keys (numbers or strings) to values or containers
Protected
Static
addStatic
createStatic
get
Adds a deletion marker (tombstone) for a particular key in the directory. The corresponding value will be seen to be unset in the data model.