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

refactor: transactional interface #772

Closed
wants to merge 4 commits into from
Closed

refactor: transactional interface #772

wants to merge 4 commits into from

Conversation

alnr
Copy link
Contributor

@alnr alnr commented Oct 12, 2023

BREAKING CHANGE: This patch changes the transactional interface to improve transactional isolation across all handlers. Instead of begin/commit/rollback being called within the handler, we now use MaybeTransaction which (a) can start a new transaction or (b) use the already existing transaction.

The callback style makes the code significantly more readable and it is easier to handle issues such as panics. See the godoc for more information on the implementation.

@aeneasr aeneasr closed this Feb 13, 2024
@aeneasr aeneasr reopened this May 7, 2024
@aeneasr aeneasr changed the title WIP: refactor Transactional interface refactor: transactional interface May 7, 2024
@aeneasr
Copy link
Member

aeneasr commented May 7, 2024

The current implementation does work indeed, we just need to wrap it in Ory Hydra!

@aeneasr aeneasr closed this May 7, 2024
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