def __exit__(self, exc_type, exc_val, exc_tb):
    if (exc_type is None):
        self.cursor.execute(f'RELEASE {self.name}')
    else:
        self.cursor.execute(f'ROLLBACK TO {self.name}')
def __exit__(self, exc_type, exc_val, exc_tb):
    if (exc_type is None):
        self.cursor.execute(f'RELEASE {self.name}')
    else:
        self.cursor.execute(f'ROLLBACK TO {self.name}')