[SailfishDevel] sqlite absolute path

fasza2mobile at gmail.com fasza2mobile at gmail.com
Sun Aug 3 13:42:36 UTC 2014


Thanks Lukas, I'll have a look at it when I get hone tonight.

On Sun Aug 03 2014 14:06:32 GMT+0100 (BST), Lukas Vogel wrote:
> You shouldn't write in /usr/* directory. Rather use standard path:
> See https://lists.sailfishos.org/pipermail/devel/2014-February/003258.html
> 
> 
> See also:
> http://comments.gmane.org/gmane.comp.handhelds.sailfishos.devel/3632
> 
> 
> 
> 2014-08-03 15:00 GMT+02:00 Krisztian Olah <fasza2mobile at gmail.com>:
> 
> > Hi I need a bit of help with saving my database. When I do:
> >
> > QSqlDatabase db;
> > db.setDatabaseName("/usr/share/<harbour-myapp>/data/data.sqlite")
> > db.open()
> > ...
> >
> > I get this error: "QSqlQuery::exec: database not open"
> > thus the file isn't created at all.
> > However if I change name to "data.sqlite" it works fine, but saves it to
> > /home/nemo/
> > Could someone tell me what I need to do in order to save the file under
> > the correct path?
> >
> > Thanks in advance
> > Kris
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscribe at lists.sailfishos.org
> >
>

-- 
Sent from my Jolla


More information about the Devel mailing list