Skip to main content

Create DB

Create Database Method

Table Of Create DB Method​

Parameters​

  • database_name (New Database Name)
create_db(database_name)

Example Usage​

await db.create_db('database_name');
// -> Creates a separate database on the server

Returned Data​

Returns true if the database has been created successfully

true
Note

This will NOT overwrite an existing database
This will only create the database if it's NOT EXISTED
You need to create a new connection manually after creating a new database
If you had an old events, you need to re-register the events since this is a new class created