Static
clientGet a list of databases connected.
Static
clientCreate a database client instance, connecting to it and returning its instance.
A unique name for the database.
Optional
databaseDirectory: string = ""The folder path for where the database and its collections will be stored.
Optional
collectionsList: CollectionsListEntry[] = []An array of collections, where each item in this array is an object containing the name of the collection and the model or document that the collection will use.
Optional
clientType: typeof NedbClient = NedbClientA custom type of database client, though you can leave this blank to use the default SuperCamo database client.
The newly-created database client instance.
Static
clientStatic
clientStatic
clientCreate an accessor for a database that is connected in the app.
The name of the database that you wish to connect to.
A NedbClient instance.
An object containing the app's currently-connected database clients. Each key in this object is one client, and the name of each key is the name of that database.