Skip to content

Conversation

rkistner
Copy link
Contributor

Some temporary internal views were created when the extension is initialized on a database.

This causes issues when using the extension with SQLCipher: The PRAMGA key = '...' command must be executed before the database file is touched, but that's not possible when the views are created when the extension is initialized.

This moves the view creation from the extension initialization to the powersync_init() function.

@rkistner rkistner requested a review from mugikhan September 11, 2024 11:24
Copy link
Contributor

@mugikhan mugikhan left a comment

Choose a reason for hiding this comment

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

LGTM, looking forward to testing this with SQLCipher.

@rkistner rkistner merged commit 7bc9257 into main Sep 12, 2024
17 checks passed
@rkistner rkistner deleted the fix-init branch September 12, 2024 11:36
@rkistner rkistner mentioned this pull request Sep 19, 2024
@rkistner rkistner mentioned this pull request Oct 3, 2024
10 tasks
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