Construct a new in memory db with the provided collection references
Name of database
Options object to modify DB behaviour (mostly unused)
BackupProvider to save and restore documents/collections to and from
Map of plugins to apply to the database
Storage provider for document data
Automatically generate dynamic indexes - link deeply nested content in a document to the root document to speed up future query results
Debugger variable
Key based object containing all the collections
Add a new collection to the DB. It won't replace a collection unless you specify to
Collection to add to the db
Add an EventHandler class to the DB
EventHandler or array of EventHandler classes to add to the DB
Backup collection data to the provided BackupProvider.
Return a specified collection by name
Collection name to select
Alias of this.c() - Returns a specified collection
Name of collection to retrieve
Delete a collection and all its documents
Collection name to delete
Loop over the EventHandlers and emit the event to the provided function
Event to emit
Empty out a collection, deleting the documents but leaving the collection structure intact
Empty out a specified collection
Restore collection documents from a backup using the provided BackupProvider. This won't overwrite any documents
Generated using TypeDoc
Database constructor containing all the initialised collections