runner.cli.mysql

Module Contents

Functions

mysql(context: click.core.Context)

Commands to operate on the mysql database

shell(command: Optional[str])

Execute a root session of the mysql client

create(context: click.core.Context)

MySQL CREATE predicate

drop(context: click.core.Context)

MySQL DROP predicate

show(context: click.core.Context)

MySQL SHOW predicate

create_database_cmd(project: Optional[derex.runner.project.Project], db_name: str)

Create a mysql database.

create_user_cmd(user: str, password: str, host: str)

Create a mysql user

drop_database_cmd(project: Optional[derex.runner.project.Project], db_name: str)

Drop a mysql database

drop_user_cmd(user: str, host: str)

Drop a mysql user

show_databases_cmd()

List all MySQL databases

show_users_cmd()

List all MySQL users

copy_database_cmd(project: Optional[derex.runner.project.Project], source_db_name: str, destination_db_name: Optional[str])

Copy an existing mysql database. If no destination database is given it defaults

reset_mysql_cmd(context, force)

Reset MySQL database for the current project

reset_mysql_password_cmd(current_password: str, force: bool)

Reset the mysql root user password with the one derived from

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

Commands to operate on the mysql database

runner.cli.mysql.shell(command: Optional[str])[source]

Execute a root session of the mysql client

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.show(context: click.core.Context)[source]

MySQL SHOW predicate

runner.cli.mysql.create_database_cmd(project: Optional[derex.runner.project.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[derex.runner.project.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[derex.runner.project.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

runner.cli.mysql.reset_mysql_password_cmd(current_password: str, force: bool)[source]

Reset the mysql root user password with the one derived from the Derex main secret.