A state database change.
A data transformation that can be applied to a state database.
A signal that emits the change type any time a value changes.
Clear the entire database.
Fetch a value from the database.
Fetch a list from the database.
Merge data into the state database.
Overwrite the entire database with new contents.
Remove a key in the database.
Save a key and its value in the database.
Clear the entire database.
Retrieve a saved bundle from the database.
The identifier used to retrieve a data bundle.
A promise that bears a data payload if available.
The id
values of stored items in the state database are formatted:
'namespace:identifier'
, which is the same convention that command
identifiers in JupyterLab use as well. While this is not a technical
requirement for fetch()
, remove()
, and save()
, it is necessary for
using the list(namespace: string)
method.
The promise returned by this method may be rejected if an error occurs in
retrieving the data. Non-existence of an id
will succeed with the value
undefined
.
Retrieve all the saved bundles for a namespace.
A promise that bears a collection of payloads for a namespace.
Namespaces are entirely conventional entities. The id
values of stored
items in the state database are formatted: 'namespace:identifier'
, which
is the same convention that command identifiers in JupyterLab use as well.
If there are any errors in retrieving the data, they will be logged to the console in order to optimistically return any extant data without failing. This promise will always succeed.
Remove a value from the database.
The identifier for the data being removed.
A promise that is rejected if remove fails and succeeds otherwise.
Save a value in the database.
The identifier for the data being saved.
The data being saved.
A promise that is rejected if saving fails and succeeds otherwise.
The id
values of stored items in the state database are formatted:
'namespace:identifier'
, which is the same convention that command
identifiers in JupyterLab use as well. While this is not a technical
requirement for fetch()
, remove()
, and save()
, it is necessary for
using the list(namespace: string)
method.
Return a serialized copy of the state database's entire contents.
A promise that resolves with the database contents as JSON.
Generated using TypeDoc
The default concrete implementation of a state database. A namespace for StateDB statics.