'Add tables and constraints from MySQL database to graph.'

def add_all_tables_to_graph(self):

    self.db.query('SHOW    TABLES;')
    result = self.db.store_result()
    for row in result.fetch_row(1000):
        table_name = row[0]
        self.add_table_to_graph(table_name)
