Using cacheDirectory for expo-sqlite

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): all

From what I’ve seen, expo-sqlite only seems to support db files saved in the documents directory. I was wondering if it was possible at all to load a db from the cache directory.

We need to use a large read-only DB that we’d prefer not be in the document directory, especially since Apple recommends not saving non-user generated data in documents, but instead saving it in cache so that it can be removed (and easily replaced) if the device runs low on disk space. Also, we’d prefer that such a large DB not sync with the user’s iCloud since that’d be a waste of storage space for them.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.