From 495b4afe46608368775d7516b3e5de1898f082eb Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 6 Sep 2020 16:35:16 -0400 Subject: [PATCH] Doxygen comments for TransactionScope --- src/DBConnection.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/DBConnection.h b/src/DBConnection.h index 131b85e8d..362664770 100644 --- a/src/DBConnection.h +++ b/src/DBConnection.h @@ -110,10 +110,12 @@ private: bool mBypass; }; -// Make a savepoint (a transaction, possibly nested) with the given name; -// roll it back at destruction time, unless an explicit Commit() happened first. -// Commit() must not be called again after one successful call. -// An exception is thrown from the constructor if the transaction cannot open. +//! RAII for a database transaction, possibly nested +/*! Make a savepoint (a transaction, possibly nested) with the given name; + roll it back at destruction time, unless an explicit Commit() happened first. + Commit() must not be called again after one successful call. + An exception is thrown from the constructor if the transaction cannot open. + */ class TransactionScope { public: