I am new to react native so please forgive me If I ask anything wrong. I am integrating sqlite (https://github.com/andpor/react-native-sqlite-storage) to store data locally on my device and I am able to create table with insert record and fetch but not able to find out where all the queries are stored mean where it create database file in our app.
Below is the 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) => {
// Get rows with Web SQL Database spec compliance.
alert(JSON.stringify(results));
},(err) => {
alert('error '+JSON.stringify(err));
});
});
I want to store this table in database and also want to see query in database file with location. Please help me out to find-out the solution. Thanks in advance.