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

Database file is not able to find in android?

Open shivaraj-profecia opened this issue 7 years ago • 1 comments

shivaraj-profecia avatar Mar 19 '18 11:03 shivaraj-profecia

Hi Everyone, I am using react-native-sqlite-2 plugin and i have created Db successfully and ii also got success in success callback but i am not able to find the created .db file in my android assets folder , even i have created www folder to root directory but i am not able to find db file in that also.

Here is my code..

const db = SQLite.openDatabase({name: "DOT_DB.db", createFromLocation : "~example.db", location: 'Library'}, 200000, this.openCB);
db.transaction(function (txn) {
  other code..........
  });
}); 

shivaraj-profecia avatar Mar 19 '18 12:03 shivaraj-profecia