def get_isolation_level(self, dbapi_connection):
    cursor = dbapi_connection.cursor()
    cursor.execute('PRAGMA read_uncommitted')
    res = cursor.fetchone()
    if res:
        value = res[0]
    else:
        value = 0
    cursor.close()
    if (value == 0):
        return 'SERIALIZABLE'
    elif (value == 1):
        return 'READ UNCOMMITTED'
    else:
        assert False, ('Unknown isolation level %s' % value)
def get_isolation_level(self, dbapi_connection):
    cursor = dbapi_connection.cursor()
    cursor.execute('PRAGMA read_uncommitted')
    res = cursor.fetchone()
    if res:
        value = res[0]
    else:
        value = 0
    cursor.close()
    if (value == 0):
        return 'SERIALIZABLE'
    elif (value == 1):
        return 'READ UNCOMMITTED'
    else:
        assert False, ('Unknown isolation level %s' % value)