Skip to main content

Create DB

Create Database Method

Table Of Create DB Method


  • database_name (New 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


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