Added DB creation [2]

This commit is contained in:
Lulzette 2022-04-27 17:48:04 +03:00
parent 85f726e84c
commit 8da2afc09d

View File

@ -404,6 +404,9 @@ def get_balance():
@dbs_app.command("create")
def dbs_create(passwd: str = typer.Option(..., help="DB password"), name: str = typer.Option(..., help="DB Name"), db_type: str = typer.Option(..., help="mysql5/mysql/postgres")):
"""
Create database
"""
# service_type == 341 - mysql
# service_type == 357 - pgsql
result = Dbaas.create(passwd=passwd, name=name, db_type=db_type)