3

I'm working with cordova-plugin-sqlite in angular2 ionic2. But I didn't find database file anywhere. I' have seen many questions regarding this issue but none of them helped me. It is not present in www folder. I want to know this .db file lies exactly and how to set location of this file.

this.sqlite.create(
{
    name: "MyDatabase.db", // <---- I want to know location of this file
    location: "default"    // and how to set its location
});
Zeeshan Malik
  • 627
  • 1
  • 14
  • 31

1 Answers1

0

The location for your db would be:

/data/data/<your package name ex: com.rajeev.myapp>/databases/MyDatabase.db

You can view the file in android studio from "Device File Explorer"

Rajeev Jayaswal
  • 1,423
  • 1
  • 20
  • 22