sqlite - How to find out the physical location of created database in react-native application in android? -
i new react native please forgive me if ask wrong . integrating sqlite (https://github.com/andpor/react-native-sqlite-storage) store data locally on device , able create table insert record , fetch not able find out queries stored mean create database file in our app.
below code
let sqlite = require('react-native-sqlite-storage')
let db = sqlite.opendatabase({name: 'user_consultant.db', location: 'library'}, this.opencb, this.errorcb);
db.transaction((tx) => {
tx.executesql('create table if not exists category (id integer primary key autoincrement,name varchar(25))', [], (tx, results) => { // rows web sql database spec compliance. alert(json.stringify(results)); },(err) => {
alert('error '+json.stringify(err));
}); });
i want store table in database , want see query in database file location. please me out find-out solution. in advance
Comments
Post a Comment