Add a DEBUG_SQL_QUERIES to log info about the executed SQL queries
fix #3324
This commit is contained in:
@@ -110,6 +110,10 @@ struct SelectQuery: public Query
|
||||
{
|
||||
std::vector<Row<T...>> rows;
|
||||
|
||||
#ifdef DEBUG_SQL_QUERIES
|
||||
const auto timer = this->log_and_time();
|
||||
#endif
|
||||
|
||||
auto statement = db.prepare(this->body);
|
||||
statement->bind(std::move(this->params));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user