SuperCamo

Main interface of the SuperCamo system. The functionality of SuperCamo is declared as static items on ths SuperCamo class. So, use expressions like:

Constructor

new SuperCamo()

Author
  • BigfootDS
Example
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.

Author
  • BigfootDS

getClientByName

Retrieve a specific active database client instance from SuperCamo.

Author
  • BigfootDS

getClientList

Retrieve the list of database names registered to SuperCamo within this app's current lifetime.

Author
  • BigfootDS

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.

Author
  • BigfootDS

(static) activeClients

An object containing each connected database client. Access a specific database client using its name.

Author
  • BigfootDS