def tablestruct(db):
    tablestruct = {}
    tables = tablelist(db)
    for table in tables:
        db.query("describe %s;" % table)
        r = db.store_result()
        structure = []
        for row in r.fetch_row(100):
            structure.append(row[0])
        tablestruct[table] = structure
    return tablestruct
dataset/ETHPy150Open sahana/eden/static/scripts/tools/dbstruct_mysql.py/tablestruct/original