I’m developing an IOS app with the phonegap-framework
Since phone-gap by default looks into ../Library/Caches/file__0/0000000000000001.db and ../Library/Caches/Databases.db for a database, so i copied these files which contain the db information into the mentioned locations once the app launches.
I know 0000000000000001.db contains table creation statements, but was not sure as to what Databases.db contains because when tried with only 0000000000000001.db, it doesn’t work so both the files are required. So my main query is what does Databases.db contain? Also, Can i change the names of 0000000000000001.db and Databases.db?
Database file names can not be changed. You can give your preferred name while opening database like this:
Databases.db contains a table named “Databases” which contains name and path for your current database. It has mainly four columns:
name,displayName, estimatedSize,path.path field having entry
0000000000000001.dbfor your database.Comparing Databases column to
openDatabasesyntax: