Initializing the database
After connecting to a database, you have to initialize it before it's ready to be used.
Initializing creates a configuration table called adb_conf
. As the name implies, this table is used to store configuration data like the current version.
💡
Never edit this table manually. You might break the configuration of your database which will break the AlphaDB functionality!
Before intializing, make sure the database is completely empty. If the database is not empty and you are very sure all data is backed up, the vacate can be used to empty it completely.
To initialize the database call the init
method. If any other methods follow, you might want to wrap this in an async
function and await it.
db.init();
// Or await
await db.init();