runner.cli.mysql

Module Contents

runner.cli.mysql.mysql(context: click.core.Context)[source]

Commands to operate on the mysql database

runner.cli.mysql.create(context: click.core.Context)[source]

MySQL CREATE predicate

runner.cli.mysql.drop(context: click.core.Context)[source]

MySQL DROP predicate

runner.cli.mysql.grant(context: click.core.Context)[source]

MySQL GRANT predicate (TODO)

runner.cli.mysql.show(context: click.core.Context)[source]

MySQL SHOW predicate

runner.cli.mysql.create_database_cmd(project: Optional[Project], db_name: str)[source]

Create a mysql database.

runner.cli.mysql.create_user_cmd(user: str, password: str, host: str)[source]

Create a mysql user

runner.cli.mysql.drop_database_cmd(project: Optional[Project], db_name: str)[source]

Drop a mysql database

runner.cli.mysql.drop_user_cmd(user: str, host: str)[source]

Drop a mysql user

runner.cli.mysql.show_databases_cmd()[source]

List all MySQL databases

runner.cli.mysql.show_users_cmd()[source]

List all MySQL users

runner.cli.mysql.copy_database_cmd(project: Optional[Project], source_db_name: str, destination_db_name: Optional[str])[source]

Copy an existing mysql database. If no destination database is given it defaults to the project mysql database name.

runner.cli.mysql.reset_mysql_cmd(context, force)[source]

Reset MySQL database for the current project