[SailfishDevel] Connect to 2 databases
es.rosenberg+sailfishos.org at gmail.com
Wed Sep 14 20:34:18 UTC 2016
Assuming you need SQLite since you are developing for SailfishOS the first
result here seems to be what you are looking for:
Instead of creating one SQLite object you create 2 or more, one for each
database.... though if you are opening a lot of databases you might want to
consider if they shouldn't all be different tables in the same database.
Of course you could also be more forthcoming about what exact db you're
trying to connect to and what you tried so that we don't do double work for
you, I believe as a community we need to be helpful etc. but as a member
looking for help I also need to do my due diligence, without that expect
short basic answers or none...
The general idea should be along these lines:
sqlite3 *db1, *db2;
2016-09-14 18:03 GMT+03:00 Chris Walker <
cdw_nokiaqt at the-walker-household.co.uk>:
> On Wed, 14 Sep 2016 00:19:02 +0300
> "E.S. Rosenberg" <es.rosenberg+sailfishos.org at gmail.com> wrote:
> > 2 different connection objects?
> > 2016-09-08 16:40 GMT+03:00 Chris Walker <
> > cdw_nokiaqt at the-walker-household.co.uk>:
> > > Can anybody point me in the direction of some C++ code to connect to
> > > two SQL databases please?
> I'd like to point out the wording of my question? I said ".. point me in
> the direction of some code". So can anybody help with that please?
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel