def rollback(self):
    if self.closed():
        raise errors.ConnectionError('Connection is closed')
    cur = self.cursor()
    cur.execute('ROLLBACK;')
def rollback(self):
    if self.closed():
        raise errors.ConnectionError('Connection is closed')
    cur = self.cursor()
    cur.execute('ROLLBACK;')