

def get_columns(self, table, schema=None):
    cursor = self.execute_sql(('PRAGMA table_info("%s")' % table))
    return [ColumnMetadata(row[1], row[2], (not row[3]), bool(row[5]), table) for row in cursor.fetchall()]

dataset/ETHPy150Open coleifer/peewee/peewee.py SqliteDatabase.get_columns/original