whitespaces

This commit is contained in:
silverqx
2024-03-19 17:31:35 +01:00
parent 2fe0f22039
commit 9f4a7ec155
4 changed files with 13 additions and 22 deletions
+4 -6
View File
@@ -227,11 +227,9 @@ namespace Orm
/* Others */
/*! Execute the given callback in "dry run" mode. */
QVector<Log>
pretend(const std::function<void()> &callback);
QVector<Log> pretend(const std::function<void()> &callback);
/*! Execute the given callback in "dry run" mode. */
QVector<Log>
pretend(const std::function<void(DatabaseConnection &)> &callback);
QVector<Log> pretend(const std::function<void(DatabaseConnection &)> &callback);
/*! Determine if the connection is in a "dry run". */
inline bool pretending() const;
@@ -263,8 +261,8 @@ namespace Orm
/*! Callback type used in the run() method. */
template<typename Return>
using RunCallback =
std::function<Return(const QString &, const QVector<QVariant> &)>;
using RunCallback = std::function<Return(const QString &,
const QVector<QVariant> &)>;
/*! Run a SQL statement and log its execution context. */
template<typename Return>
+5 -8
View File
@@ -243,20 +243,17 @@ namespace Query
/* Pretending */
/*! Execute the given callback in "dry run" mode. */
QVector<Log>
pretend(const std::function<void()> &callback,
const QString &connection = "");
QVector<Log> pretend(const std::function<void()> &callback,
const QString &connection = "");
/*! Execute the given callback in "dry run" mode. */
QVector<Log>
pretend(const std::function<void(DatabaseConnection &)> &callback,
const QString &connection = "");
QVector<Log> pretend(const std::function<void(DatabaseConnection &)> &callback,
const QString &connection = "");
/* Records were modified */
/*! Check if any records have been modified. */
bool getRecordsHaveBeenModified(const QString &connection = "");
/*! Indicates if any records have been modified. */
void recordsHaveBeenModified(bool value = true,
const QString &connection = "");
void recordsHaveBeenModified(bool value = true, const QString &connection = "");
/*! Reset the record modification state. */
void forgetRecordModificationState(const QString &connection = "");