

def _set_pragmas(self, conn):
    if self._pragmas:
        cursor = conn.cursor()
        for (pragma, value) in self._pragmas:
            cursor.execute(('PRAGMA %s = %s;' % (pragma, value)))
        cursor.close()

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