The MicroDBMS class is a small container for managing multiple MicroDB's with an ease. It also allows you to sync janitor cleanups easily.
It is intended to use with the static methods and not as instance.
static allTables
Returns all active tables as MicroDBDriver.
Type: Record<string, MicroDBDriver<unknown>>
static globalJanitor
Returns a global MicroDBJanitor instance.
Type: MicroDBJanitor | undefined
static setFolderPath()
Set the path of the folder, where all database files will get stored.
Returns: void
static setJanitorCronjob()
Set the cronjob of the global janitor.
Returns: void
static table<T>()
Create a new table in the DBMS's folder path.
Returns: Promise<MicroDBDriver<T>>
static deleteTable()
Delete a active table.
Returns: Promise<void>