Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(transactions)!: transactions with automated rollback #6

Merged
merged 11 commits into from
Sep 9, 2024

Conversation

acodeninja
Copy link
Owner

No description provided.

@acodeninja acodeninja merged commit b33bcd5 into main Sep 9, 2024
2 checks passed
@acodeninja acodeninja deleted the feat/transactions branch September 9, 2024 10:16
acodeninja added a commit that referenced this pull request Sep 9, 2024
* test: add not to calledWith assertion

* fix: upgrade monocart-coverage-reports

In reference to issue raised where coverage of static async
class methods incorrectly reported branch coverage.

cenfun/monocart-coverage-reports#67

* fix: export HTTP engine from defaults

* refactor!: throw errors on failed writes to engines

BREAKING CHANGE: change to behaviour on put engine methods, exceptions
will stop a put in progress

* test: add engine api test

* test: add test for exported HTTP engine

* feat(transactions): add transactional engine wrapper with commit capability

* test(transactions): commit throws the underlying exception on failure

* feat(transactions): add automatic rollback when a transaction fails

* feat(transactions): allow Persist.addEngine to create transactional engines

* docs(transactions): add documentation on using transactional engines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant