I'm creating a desktop app using Mozzila's XUL. I created sqlite db, and stored some data in it. Db was created using:
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/FileUtils.jsm");
var file = FileUtils.getFile("ProfD", ["tickets.sqlite"]);
var dbConn = Services.storage.openDatabase(file);
I tested if the tables really exist in db using tableExists method, and I got true message. Database should be stored in profile direcotry which is by default located as hidden folder(btw I use Fedora) in home dir as .mozzila. Problem is I can't find my db there stored as tickets.sqlite. Anyone?
Aucun commentaire:
Enregistrer un commentaire