Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Detach SQL code of Qt code
Exotic_Devel last edited by
In java language exist Hibernate. In Qt exists some equivalent? How can I separate the SQL code in Qt
Are you thinking about something like "QxOrm":http://www.qxorm.com/qxorm_en/home.html ?
JulienMaille 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