grr/server/grr_response_server/databases/mysql.py
def _InitializeSchema(self, cursor):
    """Initialize the database's schema."""
    for command in mysql_ddl.SCHEMA_SETUP:
      try:
        cursor.execute(command)
      except MySQLdb.MySQLError as e:
        raise SchemaInitializationError(
            "{}. Error occurred during execution of {}"
            .format(e, command.strip()))
Initialize the database's schema.
Initialize the database's schema.
Initialize the database ' s schema .
def _InitializeSchema(self, cursor):
    for command in mysql_ddl.SCHEMA_SETUP:
      try:
        cursor.execute(command)
      except MySQLdb.MySQLError as e:
        raise SchemaInitializationError(
            "{}. Error occurred during execution of {}"
            .format(e, command.strip()))
def _InitializeSchema ( self , cursor ) : for command in mysql_ddl . SCHEMA_SETUP : try : cursor . execute ( command ) except MySQLdb . MySQLError as e : raise SchemaInitializationError ( "{}. Error occurred during execution of {}" . format ( e , command . strip ( ) ) )
Initialize the database's schema.
Initialize the database ' s schema .
"""Initialize the database's schema."""
self
cursor