Skip to content

Conversation

@Chriztiaan
Copy link
Contributor

@Chriztiaan Chriztiaan commented Apr 24, 2024

Descriptions

Originally reported by an end user
On my side with 10k Todos I ran into an I/O error on Android 12 which has to do with the tmp dir not being available for some reason.

I originally had a fix with

await this.database.execute('PRAGMA temp_store = file;');
await this.database.execute("PRAGMA temp_store_directory = '/data/user/0/com.powersync.example/cache'");

which works on runtime and would require me to use react-native-fs to identify the cache directory.

Upon looking for other solutions we found this with is compile time and in-memory meaning we don't need to depend on rn-fs

Verify solution

User has confirmed that this solved their issue.

Extra

Related issues: https://github.com/margelo/react-native-quick-sqlite/pull/25

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