Constructor for the ModelDB
.
Private
_basePrivate
_dbPrivate
_disposablesPrivate
_isPrivate
_toReadonly
connectedA promise resolved when the model is connected to its backend. For the in-memory ModelDB it is immediately resolved.
Readonly
isWhether the model is collaborative.
Readonly
isWhether the model has been populated with any model values.
The base path for the ModelDB
. This is prepended
to all the paths that are passed in to the member
functions of the object.
Whether the database is disposed.
Private
_resolveCreate an undoable list and insert it in the database.
the path for the list.
the list that was created.
The list can only store objects that are simple JSON Objects and primitives.
Create a map and insert it in the database.
the path for the map.
the map that was created.
The map can only store objects that are simple JSON Objects and primitives.
Create a string and insert it in the database.
the path for the string.
the string that was created.
Create an opaque value and insert it in the database.
the path for the value.
the value that was created.
Get a value for a path.
the path for the object.
an IObservable
.
Set a value at a path. Not intended to
be called by user code, instead use the
create*
factory methods.
the path to set the value at.
the value to set at the path.
Set a value at a path. That value must already have
been created using createValue
.
the path for the value.
the new value.
A concrete implementation of an
IModelDB
.