def wikisql_db_to_table_tuples(db_name, db):
  """Return list of abstract_sql.TableSchema from a dict describing a DB."""
  del db_name
  table_schemas = list()
  for table_name, columns in db.items():
    column_names = [column['field name'].lower() for column in columns]
    table_schemas.append(
        abstract_sql.TableSchema(
            table_name=table_name.lower(), column_names=column_names))
  return table_schemas
Return list of abstract_sql.TableSchema from a dict describing a DB.
language/xsp/data_preprocessing/abstract_sql_converters.py