Reputation: 215
I need to get size of sqlite database, like this:
var db = Ti.Database.open('test');
//db.size();
//size doesn't works
the size() method does not exist, how can I do to get the size ? Is there any other way I can do to get the size of the db ?
Thanks
Upvotes: 0
Views: 114
Reputation: 486
The database is stored in a file, which you can get the size of. So, db.file will return a handle to the file and then getting the size of the file is simply the size property. I think this should work: db.file.size
Ray
Upvotes: 2