Very true. If you need something like that to be agnostic, then you need to use a query builder or ORM.
But it's not like Qt is very agnostic. Pragmatically speaking, the lack of constistent binding across of drivers kills it right out of the gate.
In days like this, where NoSQL is an emerging trend I can't see anything really happening at the SQL module anymore.
Sent: Thursday, April 23, 2015 at 1:48 AM
From: "André Somers" <an...@familiesomers.nl>
To: interest@qt-project.org
Subject: Re: [Interest] QtSql database insertion issues...
From: "André Somers" <an...@familiesomers.nl>
To: interest@qt-project.org
Subject: Re: [Interest] QtSql database insertion issues...
Jason H schreef op 23-4-2015 om 04:38:
I always execute CREATE TABLE IF NOT EXISTS table .... after connecting.
Problem is: there is no DDL support in Qt, so it is not possible to do that in a way that is database-agnostic. Your code will not work against all databases I think.
André
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest