code: def sql(
      state, host, sql,
      database=None,
      # Details for speaking to MySQL via `mysql` CLI
      mysql_user=None, mysql_password=None,
      mysql_host=None, mysql_port=None,
  ):
      '''
      Execute arbitrary SQL against MySQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to open the connection with
      + mysql_*: global module arguments, see above
      '''
  
      yield make_execute_mysql_command(
          sql,
          database=database,
          user=mysql_user,
          password=mysql_password,
          host=mysql_host,
          port=mysql_port,
      f sql(
      state, host, sql,
      database=None,
      # Details for speaking to MySQL via `mysql` CLI
      mysql_user=None, mysql_password=None,
      mysql_host=None, mysql_port=None,
  ):
      '''
      Execute arbitrary SQL against MySQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to open the connection with
      + mysql_*: global module arguments, see above
      '''
  
      yield make_execute_mysql_command(
          sql,
          database=database,
          user=mysql_user,
          password=mysql_password,
          host=mysql_host,
          port=mysql_port,
      )
docs: Execute arbitrary SQL against MySQL.
  
      + sql: SQL command(s) to execute
      + database: optional database to open the connection with
      + mysql_*: global module arguments, see above