

def get_primary_keys(self, table, schema=None):
    cursor = cursor.execute_sql(('PRAGMA table_info("%s")' % table))
    return [row[1] for row in cursor.fetchall() if row[(- 1)]]

dataset/ETHPy150Open coleifer/peewee/peewee.py SqliteDatabase.get_primary_keys/VarMisuse@18/21 `self`->`cursor`