Skip to content

fix: transactions resulting in error when using different threads #81

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 4 commits into from
Dec 4, 2024

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Dec 3, 2024

Description

This PR removes disabling SKIE suspendInterop for all functions. It moves the transaction object out of the generator function as using this function was the root cause of why the thread was changing when a transaction was being run in the Swift SDK.

Testing

Refer to powersync-ja/powersync-swift#3 where tests were created to test database transactions.

Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

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

This work-around is probably fine for now, but we might run in to issues later when we require using different SQLite connections for concurrent transactions.

@DominicGBauer DominicGBauer merged commit 7564051 into main Dec 4, 2024
3 checks passed
@DominicGBauer DominicGBauer deleted the fix/transaction-not-working-in-swift branch December 4, 2024 14:01
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