[Qt-interest] Qt5 and SQL

Andre Somers andre at familiesomers.nl
Wed May 18 09:14:44 CEST 2011


Op 17-5-2011 23:24, Jason H schreef:
> Can you clarify what love you would like QtSQL to get?
* Support for DDL
* Easier to use and way better documented way of creating db-independent 
queries (QSqlDriver::sqlStatement is the key, but it is not documented 
properly, nor is it recommended to use QSqlDriver in end-user code)
* Support for more types of query parts (limit vs. top, sort, grouping)
* QSql*model classes need to be asynchronous
* Actually apply the fixes that are available already as merge requests 
or attached to bug reports
* Fix some of the other issues, like that table names are not escaped 
properly
* A way to represent database settings in a database independent way

Most of the above, I managed to build myself on top of the existing 
QtSql code, but it could have been so much easier to get my application 
to work properly independent of the database type...

But, I could imagine that QtSql could become part of a broader Qt data 
framework. Relational database are, after all, only one way to store and 
manage data. It would be very nice if there would be framework that 
would allow easy interaction with these different types of backends with 
a single interface.

André




More information about the Qt-interest-old mailing list