Open arashn opened 4 years ago
Add a new class HeliumTransaction, and make it a context manager by adding the following two methods:
__enter__
__exit__
Add a new class HeliumTransaction, and make it a context manager by adding the following two methods:
__enter__
: open the transaction.__exit__
: if there were errors, discard the transaction, else commit the transaction.