mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-09 03:49:21 -06:00
I still was not able to compile it on gcc because of the cyclic dependency of models. - removed zero from dll names where possible
34 lines
651 B
C++
34 lines
651 B
C++
#ifndef LOGQUERY_H
|
|
#define LOGQUERY_H
|
|
|
|
#include <QString>
|
|
|
|
class QSqlQuery;
|
|
|
|
#ifdef TINYORM_COMMON_NAMESPACE
|
|
namespace TINYORM_COMMON_NAMESPACE
|
|
{
|
|
#endif
|
|
|
|
// TODO code which was here, will be reverted after merge of the logQuery() and logExecutedQuery() silverqx
|
|
QString parseExecutedQuery(const QSqlQuery &query);
|
|
|
|
#ifdef QT_DEBUG
|
|
Q_DECL_UNUSED
|
|
void logExecutedQuery(const QSqlQuery &query);
|
|
#endif
|
|
|
|
#ifndef LOG_EXECUTED_QUERY
|
|
# ifdef QT_DEBUG
|
|
# define LOG_EXECUTED_QUERY(query) logExecutedQuery(query)
|
|
# else
|
|
# define LOG_EXECUTED_QUERY(query) qt_noop()
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef TINYORM_COMMON_NAMESPACE
|
|
}
|
|
#endif
|
|
|
|
#endif // LOGQUERY_H
|