Files
TinyORM/include/orm/logquery.hpp
silverqx 49eae88995 added partial gcc compatibility
I still was not able to compile it on gcc because of the cyclic
dependency of models.

 - removed zero from dll names where possible
2021-05-07 11:14:24 +02:00

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