def create_mysql_client_command(self, statement: str) -> str:
    command_connection = '{} --defaults-file={} -u{} --password={}'.format(self.mysql_options.get('mysql'), self.mysql_options.get('mycnf'), self.mysql_options.get('mysql_user'), self.mysql_options.get('mysql_password'))
    command_execute = ' -e "{}"'
    if self.mysql_options.get('mysql_socket'):
        command_connection += ' --socket={}'
        new_command = command_connection.format(self.mysql_options.get('mysql_socket'))
    else:
        command_connection += ' --host={} --port={}'
        new_command = command_connection.format(self.mysql_options.get('mysql_host'), self.mysql_options.get('mysql_port'))
    new_command += command_execute
    return new_command.format(statement)
def create_mysql_client_command(self, statement: str) -> str:
    command_connection = '{} --defaults-file={} -u{} --password={}'.format(self.mysql_options.get('mysql'), self.mysql_options.get('mycnf'), self.mysql_options.get('mysql_user'), self.mysql_options.get('mysql_password'))
    command_execute = ' -e "{}"'
    if self.mysql_options.get('mysql_socket'):
        command_connection += ' --socket={}'
        new_command = command_connection.format(self.mysql_options.get('mysql_socket'))
    else:
        command_connection += ' --host={} --port={}'
        new_command = command_connection.format(self.mysql_options.get('mysql_host'), self.mysql_options.get('mysql_port'))
    new_command += command_execute
    return new_command.format(statement)