Printing queries
Posted: Tue May 14, 2019 11:47 am
Hello,
I have been implementing QxOrm in our c++ project and now that I am transforming more complex sql (string) statements into the QxOrm format, I need to have QxOrm print the generated /called queries.
we need these prints for validation.
In the examples from the blog there are automatic prints to command line but I am not able to get them.
After some investigation, I can see that the QX_SQL_BUILDER_INIT_FCT and QX_SQL_BUILDER_INIT_FCT_WITH_RELATION hold the QString sql variable.
Is there a simple command to just dump the generated query from the QxSqlQueryBuilder?
Thank you!
I have been implementing QxOrm in our c++ project and now that I am transforming more complex sql (string) statements into the QxOrm format, I need to have QxOrm print the generated /called queries.
we need these prints for validation.
In the examples from the blog there are automatic prints to command line but I am not able to get them.
After some investigation, I can see that the QX_SQL_BUILDER_INIT_FCT and QX_SQL_BUILDER_INIT_FCT_WITH_RELATION hold the QString sql variable.
Is there a simple command to just dump the generated query from the QxSqlQueryBuilder?
Thank you!