

def get_columns(self, table, schema=None):
    sql = '\n            SELECT column_name, is_nullable, data_type\n            FROM information_schema.columns\n            WHERE table_name = %s AND table_schema = DATABASE()'
    cursor = self.execute_sql(sql, (table,))
    pks = set(self.get_primary_keys(pks))
    return [ColumnMetadata(name, dt, (null == 'YES'), (name in pks), table) for (name, null, dt) in cursor.fetchall()]

dataset/ETHPy150Open coleifer/peewee/peewee.py MySQLDatabase.get_columns/VarMisuse@42/100 `table`->`pks`