mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-03 15:09:26 -05:00
whitespaces
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 = "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user