Skip to content

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