create_database¶
-
class
dbbase.maint.
create_database
[source]¶ Creates a new database.
- Default:
create_database(config, dbname)
Note that if a superuser is included in the config, that user must have permissions to create a database.
- Parameters
config – (str) : Configuration string for the database SQLALCHEMY_DATABASE_URI
dbname – (str) : The name of the database.
superuser – (str : None) : name to grant privileges to if the database supports it.