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

Adds inWithTransaction helper to get transaction status #392

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

jlavelle
Copy link
Member

@jlavelle jlavelle commented Nov 19, 2024

I added a function that will return a new type called InWithTransaction when called within the action passed to withTransaction. The value indicates whether the transaction is the outermost, or is within a savepoint.

@jlavelle jlavelle force-pushed the nebula/add-in-transaction-helper branch from 27008f3 to 43e5410 Compare November 20, 2024 17:05
Copy link
Contributor

@telser telser left a comment

Choose a reason for hiding this comment

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

Only nit left to pick is that it might be helpful to have some haddocks for what the Natural in the InSavepointTransaction is for/about.

Not a blocker for this PR by any means. Also, I'd like to do another haddock sweep before cutting 1.1.0.0 and it can be added then.

@jlavelle jlavelle force-pushed the nebula/add-in-transaction-helper branch from 43e5410 to 78da1b4 Compare November 29, 2024 16:44
I added a function that will return a new type called
`InWithTransaction` when called within the action passed to
`withTransaction`. The value indicates whether the transaction is the
outermost, or is within a savepoint.
@jlavelle jlavelle force-pushed the nebula/add-in-transaction-helper branch from 78da1b4 to 53b4d24 Compare November 29, 2024 17:02
@jlavelle jlavelle merged commit 53b4d24 into main Dec 2, 2024
18 checks passed
@jlavelle jlavelle deleted the nebula/add-in-transaction-helper branch December 2, 2024 15:45
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.

3 participants