Skip to content

Improve support for unit of work #16

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

Merged
merged 5 commits into from
Jan 10, 2025
Merged

Conversation

ChristopherMann
Copy link
Contributor

This PR improves the support for the unit of work pattern. The adapter now supports asynchronous initialization which necessary when working with database transactions.

@ChristopherMann ChristopherMann marked this pull request as ready for review January 8, 2025 16:20
@ChristopherMann ChristopherMann requested a review from fw2568 January 8, 2025 16:20
Copy link
Contributor

@fw2568 fw2568 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a little code improvement.
Made some quick tests with QChess and DMSHub without any issues.

I'm not sure how you currently use Initialize, but I thing it would make sense to add scope as argument, so you can directly use it.
edit: just noticed your second test with state store, ignore the argument comment.

@ChristopherMann ChristopherMann requested a review from fw2568 January 9, 2025 13:05
@ChristopherMann ChristopherMann merged commit f8e604c into main Jan 10, 2025
2 checks passed
@ChristopherMann ChristopherMann deleted the pull/async-unit-of-work branch January 10, 2025 14:08
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.

2 participants