[Qt-interest] Qt5 and SQL
Jason H
scorp1us at yahoo.com
Mon Jun 6 18:26:33 CEST 2011
Well, it is and isn't a database.
You still have to call QSqlDatabase::addDatabase(...) which initializes the driver for a database.
But I agree, everything else should be using a QSqlConnection class.
________________________________
From: Alan Ezust <alan.ezust at gmail.com>
To: Ed Smith-Rowland <3dw4rd at verizon.net>
Cc: qt-interest at qt.nokia.com
Sent: Monday, June 6, 2011 11:47 AM
Subject: Re: [Qt-interest] Qt5 and SQL
I see the QtSql module as a nice start for a database independent way
of accessing databases.
But the first thing I stumbled on when I was learning it and also when
teaching it to others is the confusing name given to this class:
"QSqlDatabase".
it does not represent a database. It is a connection.
Shouldn't someone start the process of renaming it to QSqlConnection,
having a deprecated typedef to QSqlDatabase in Qt5, so that we can
remove QSqlDatabase from Qt6?
And also, I was wondering if anyone has any experience playing around with
this other hibernatish object-relational mapping layer?
http://www.codesynthesis.com/products/odb/
>From what I can see, it doesn't use Qt to access the database, and it
works on MySQL and SQLite.
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110606/3e0b6d1d/attachment.html
More information about the Qt-interest-old
mailing list