def michigan_db_to_table_tuples(db):
  """Returns list of abstract_sql.TableSchema from Michigan schema object."""
  table_schemas = list()
  for table_name, columns in db.items():
    table_schemas.append(
        abstract_sql.TableSchema(
            table_name=table_name.lower(),
            column_names=[column['field name'].lower() for column in columns]))
  return table_schemas
Returns list of abstract_sql.TableSchema from Michigan schema object.
language/xsp/data_preprocessing/abstract_sql_converters.py