The MicroDBJanitor cleans up data overhead and reduces database file size. It can be used either as global instance for batching cleanups with registerDatabase & deleteDatabase or as db-personal instance.
Returns all registered databases.
Returns the cronjob configuration.
Cleans the database passed as an argument asynchronously.
Cleans all registered databases.
Register a new database to be cleaned by the janitor.
Delete a registered database.
Which database is going to be deleted is determined by the filename of the database. This means you don't need to pass the correct reference to the database, but if you would have two databases running on the same file both would get deleted.
Stops the running cronjob of the janitor.
Restarts a stopped janitor.