Convenience method to convert a document to something.
The function which will be called with a single document object. Guaranteed not to be null.
A transformFn
function to pass to the standard
select/delete/upsert/etc methods.
DELETE multiple documents.
Get an existing event based on the provided matrix IDs.
The ID of the room.
The ID of the event.
A promise which resolves to the StoredEvent or null.
Get an existing event based on the provided remote IDs.
The ID of the room.
The ID of the event.
A promise which resolves to the StoredEvent or null.
INSERT a multiple documents.
INSERT IF NOT EXISTS a single document
Remove entries based on the event data.
The event to remove.
Remove entries based on the matrix IDs.
The ID of the room.
The ID of the event.
Remove entries based on the matrix IDs.
The ID of the room.
The ID of the event.
SELECT a number of documents.
SELECT a single document.
Set a UNIQUE key constraint on the given field.
The field name. Use dot notation for nested objects.
Allow sparse entries (undefined won't cause a key violation).
UPDATE a single document. If the document already exists, this will NOT update it.
UPSERT a single document
Insert an event, clobbering based on the ID of the StoredEvent.
Generated using TypeDoc
Construct a store suitable for event mapping information. Data is stored as StoredEvents.
The connected NEDB database instance