Skip to content

Set temp_store_directory on Android #173

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 3 commits into from
Jun 2, 2025
Merged

Set temp_store_directory on Android #173

merged 3 commits into from
Jun 2, 2025

Conversation

simolus3
Copy link
Contributor

SQLite tries to write some temporary data, such as large intermediate materialized views or indexes, to the file system. For this, it attempts to use paths in /tmp or the current working directory. Due to sandboxing, both directories are unavailable on Android though. This can cause errors that users were running into.

As a workaround, this overwrites the temporary directory to point to the cache directory from the app's Context.

@simolus3 simolus3 force-pushed the android-temp-store branch from 7056c35 to cf775da Compare June 2, 2025 08:48
@simolus3 simolus3 requested a review from stevensJourney June 2, 2025 08:58
@simolus3 simolus3 merged commit 95dd3b3 into main Jun 2, 2025
3 checks passed
@simolus3 simolus3 deleted the android-temp-store branch June 2, 2025 09:30
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