SQL driver plugin for querying Qt objects
-
Hi
I never saw such a thing. not really sure what use case it could apply to ?
If you are into inspection of the objects, something like
https://www.kdab.com/development-resources/qt-tools/gammaray/
is handy. -
@elfring said in SQL driver plugin for querying Qt objects:
Does it support higher level features
What 'higher level features' do mean?
-
@elfring
hi
Did you read link ?
It explain to great detail what tool does.
Its a debugging tool. Not something you use for user oriented features.Can you explain in what cases SQL would be good for tasks related to enumerating
the the Object tree?
Normally one can use
http://doc.qt.io/qt-5/metaobjects.html to inspect objects at runtime. -
Can you explain in what cases SQL would be good for tasks related to enumerating the Object tree?
I guess to you would benefit from the following standard functionality often enough.
- Selection
- Aggregation
- Ordering
The usage of the corresponding class “QSqlTableModel” (or a similar variant) could be nice, couldn't it?
-
Hi,
Do you have a practical example for that ?
-
@elfring said in SQL driver plugin for querying Qt objects:
QSqlTableModel
You can pass a QSqlQuery to this model, so you can use your own query to select the data from the database.
-
You can pass a QSqlQuery to this model, …
This functionality is clear. Which database would you choose for this purpose?
How do you think about to query any Qt objects directly by this programming interface (if you could configure them as the desired “databases” or “tables”)?
-
Are you looking for an ORM?
Take a look at mine:
https://github.com/HamedMasafi/Nut -
Are you looking for an ORM?
It seems so. - I am used to the technology “object-relational mapping” to some degree.