ProtectedconstructorReadonlyaddressReadonlybehaviorReadonlydatabaseProtected Static ReadonlyDELETIONProtected StaticglobalProtected Static ReadonlyINCLUSIONProtectedaddOptionalkey: ScalarKey | Muid | [Muid, Muid] | Addressable | [Addressable, Addressable]Optionalvalue: Value | Deletion | InclusionOptionalmeta: MetaOptionalonContainer: MuidOptionalmeta: 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.
OptionalasOf: AsOfundefined, a basic value, or a container
OptionalasOf: 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");
Optionalmeta: 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
OptionalasOf: AsOfeffective time
Optionalseen: 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.
OptionalasOf: 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 Staticadd
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.