react-native-sqlite-storage icon indicating copy to clipboard operation
react-native-sqlite-storage copied to clipboard

Cannot open database outside of database folder on Android

Open RobertSasak opened this issue 5 years ago • 0 comments

Expected Behavior

I would like to open database located in files folder on Android device.

Current Behavior

If seems that there are only two options

  • open database located by database folder by name
  • copy and then open database from any other path

Possible Solution

Separate logic for opening database from logic to copy database. Right now both of them are tangled to each other.

Context

Mapbox is storing map tiles in sqlite database which is located in files folder. I would like to open this database and perform changes on it. I do not want to copy to database folder.

Your Environment

  • React Native SQLite Storage Version used: 5.0.0
  • React Native version used: 0.62.2
  • Operating System and version (simulator or device): Android

RobertSasak avatar Jun 10 '20 09:06 RobertSasak