This is the database manager class. With this class you can select the database driver, connect to the driver and get a specific database.
This function lets you close the connection to the database. This is done to close unneeded connections to relieve stress, since they are a pretty expensive resource. The function will return a promise that is called when the database has been closed.
cerus.database("test").close();
// -> closes the connection to the database
This function lets the driver connect to the database. How the driver connects to the database depends on the driver. If your connecting to a local database, often you can use "localhost" as domain to connect. This function returns a promise that will continue depending on the events returned by the driver.
cerus.database().connect("localhost");
// -> connects to the database at localhost
This function will return the specified database. Read more about databases {@link database.database.constructor here}.
With this function you can select the driver the database manager will use. The driver is the module that is used to interact with the database. This module depends on what you're using, like MySQL or MongoDB. The function will automatically load the driver and if the driver is unknown it will throw an error.