Constructor
new ve.dm.DocumentStore(storageClient, dbName, logger)
#
Parameters:
Methods
load(docName) → {Promise}
#
Load a document from storage (creating as empty if absent)
onNewChange(docName, change) → {Promise}
#
Save a new change to storage
Parameters:
Name | Type | Description |
---|---|---|
docName |
string | Name of the document |
change |
ve.dm.Change | The new change |
Returns:
Resolves when saved
- Type
- Promise
Save a new change to storage