def get_primary_keys(self, table, schema=None):
        cursor = self.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/original