The constructor of the class.
The uri for the MongoDB database.
The connection options to the MongoDB.
The options for the cleaner.
The MongoDB connection.
The connection options to the MongoDB.
The instance of the logger.
The options for the cleaner.
The uri for the MongoDB database.
Does the whole process of cleaning the databases, based on the options given to the class constructor.
Cleans a collection, by removing it.
The database of the collection.
The collection to empty.
The number of remaining attempts to clean the collection, after which an error could be thrown.
Cleans a database, by removing it.
The database to clean.
The number of remaining attempts to clean the database, after which an error could be thrown.
Cleans an array of databases.
The database to be cleaned.
The method for connecting to the database.
The method for disconnecting to the database.
Empties a collection, by removing all its documents.
The database of the collection.
The collection to empty.
The number of remaining attempts to empty the collection, after which an error could be thrown.
Empties a database, by removing all its collections.
The database to empty.
A method that passed a database name, based on the instance options, reurns true if the database is to be cleaned or false otherwise.
The database name.
If the database is to be cleaned.
Fetches from MongoDB all the collections of a database and returns the ones that are to be cleaned.
The database whose collections will be fetched.
The collections of the database that are to be cleaned.
Fetches from MongoDB all the databases and returns the ones that are to be cleaned.
The databases that are to be cleaned.
A method returning a promise that waits the passed number of milliseconds.
The number of milliseconds.
Generated using TypeDoc
The class that handles the cleaning code, doing the bigger part of the job.