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(transaction): Adding withTransaction #519

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

thoven87
Copy link

First pass at feature #512

What's the best way to go about writing unit test for the withTransaction func?

let iterations = 1000

for _ in 0..<iterations {
taskGroup.addTask {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should create a throwaway table here and insert some data. then we should check if a commit commits and if a rollback rolls back.

Copy link
Author

@thoven87 thoven87 Oct 21, 2024

Choose a reason for hiding this comment

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

I think we should create a throwaway table here and insert some data. then we should check if a commit commits and if a rollback rolls back.

I added tests in the latest commit. Thanks!

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