i am using sqlite database in my ionic 3 project. i want to find the the location of the db file in my local system . i have set location as default.
code for creating database is as:-
database(){
return new Promise((resolve, reject) => {
try {
this.sqlite.create({
name: ‘magicdairy.db’,
location: ‘default’
})
.then((db: SQLiteObject) =>{
try {
// tx.executeSql(‘DROP TABLE IF EXISTS customers’);
db.executeSql(‘CREATE TABLE IF NOT EXISTS blocks_customers_products(’ +
‘id integer PRIMARY KEY AUTOINCREMENT,’ +
‘city TEXT,’ +
‘created_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP)’, )
.then(() => { })
.catch(e => { });
console.log(“table is opened and values are set”);
resolve();
} catch(e){
console.log(“error occured while creating table1”);
console.log(e);
}
}
,(error) =>{
console.log(“error occured while creating database”);
console.log(error);
})
} catch (e) {
console.log(e);
}
})
}
location is default. Now i don’t know where to search the database file in local system. Kindly help