Constructor
new SuperCamo()
let myDatabase = await SuperCamo.connect(
// Read documentation to see what properties go into the SuperCamo.connect() method!
);
Members
(async) connect
Connect to a new database client instance, store its reference in SuperCamo's SuperCamo.activeClients
property, and return the newly-connected instance.
This also creates the database if it didn't already exist.
getClientByName
Retrieve a specific active database client instance from SuperCamo.
getClientList
Retrieve the list of database names registered to SuperCamo within this app's current lifetime.
getRegisteredModels
Return an array of all NedbDocuments and NedbEmbeddedDocuments registered in this app's current session usage of SuperCamo. Should be a unique list, no duplicate models.
(static) activeClients
An object containing each connected database client. Access a specific database client using its name.