Detach SQL code of Qt code
-
wrote on 23 Feb 2015, 23:21 last edited by
In java language exist Hibernate. In Qt exists some equivalent? How can I separate the SQL code in Qt
-
Hi,
Are you thinking about something like "QxOrm":http://www.qxorm.com/qxorm_en/home.html ?
-
wrote on 24 Feb 2015, 02:03 last edited by
I've read the description of QxOrm multiple times but I still can't understand what's the purpose of this library. Could someone explain it like I'm 12?
-
One of the use of it is rather than writing the code to interact with the database (table setup, queries etc.) you create object (DAO) that will do it for you behind the scene so you don't need to handle SQL at all. You can create object that can save their current state in a database and restore from it.
Hope it helps
1/4