[SailfishDevel] Connect to 2 databases

2016-09-08 Thread Chris Walker
Can anybody point me in the direction of some C++ code to connect to two SQL databases please? I want to have one set as read-only and the other as read-write. Whatever I'm doing is wrong as I always end up with a default connection. ___ SailfishOS.org

Re: [SailfishDevel] Connect to 2 databases

2016-09-13 Thread E.S. Rosenberg
2 different connection objects? 2016-09-08 16:40 GMT+03:00 Chris Walker < cdw_noki...@the-walker-household.co.uk>: > Can anybody point me in the direction of some C++ code to connect to > two SQL databases please? > > I want to have one set as read-only and the other as read-write. > > Whatever I

Re: [SailfishDevel] Connect to 2 databases

2016-09-14 Thread Chris Walker
On Wed, 14 Sep 2016 00:19:02 +0300 "E.S. Rosenberg" wrote: > 2 different connection objects? > > 2016-09-08 16:40 GMT+03:00 Chris Walker < > cdw_noki...@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 lik

Re: [SailfishDevel] Connect to 2 databases

2016-09-14 Thread E.S. Rosenberg
Assuming you need SQLite since you are developing for SailfishOS the first result here seems to be what you are looking for: https://www.google.nl/search?q=c%2B%2B+sqlite Instead of creating one SQLite object you create 2 or more, one for each database though if you are opening a lot of databa

Re: [SailfishDevel] Connect to 2 databases

2016-09-14 Thread Matthias Fehring
Am Donnerstag, 8. September 2016, 14:40:16 CEST schrieb Chris Walker: > Can anybody point me in the direction of some C++ code to connect to > two SQL databases please? Does it have to be pure C++ code? If not and if it can be the Qt way, read on. :) > I want to have one set as read-only and the

Re: [SailfishDevel] Connect to 2 databases

2016-09-15 Thread Chris Walker
On Wed, 14 Sep 2016 23:34:18 +0300 "E.S. Rosenberg" wrote: > Assuming you need SQLite since you are developing for SailfishOS the > first result here seems to be what you are looking for: > https://www.google.nl/search?q=c%2B%2B+sqlite > > Instead of creating one SQLite object you create 2 or mo

Re: [SailfishDevel] Connect to 2 databases

2016-09-15 Thread Chris Walker
On Wed, 14 Sep 2016 23:40:50 +0200 Matthias Fehring wrote: > Am Donnerstag, 8. September 2016, 14:40:16 CEST schrieb Chris Walker: > > Can anybody point me in the direction of some C++ code to connect to > > two SQL databases please? > > Does it have to be pure C++ code? If not and if it can b