crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Wrapper class for in-scope transactions. More...
#include <Database.hpp>
Construction and Destruction | |
Transaction (Main::Database &db, const std::string &isolationLevel) | |
Constructor starting the transaction using the specified isolation level. More... | |
Transaction (Main::Database &db) | |
Constructor starting the transaction using the default isolation level. More... | |
virtual | ~Transaction () |
Destructor committing the transaction on success. More... | |
Setter | |
void | success () |
Sets the state of the transaction to successful. More... | |
Copy and Move | |
Transaction (Transaction &)=delete | |
Deleted copy constructor. More... | |
Transaction & | operator= (Transaction &)=delete |
Deleted copy assignment operator. More... | |
Transaction (Transaction &&)=delete | |
Deleted move constructor. More... | |
Transaction & | operator= (Transaction &&)=delete |
Deleted move assignment operator. More... | |
Wrapper class for in-scope transactions.
|
inline |
Constructor starting the transaction using the specified isolation level.
db | Reference to the database connection to be used. |
isolationLevel | Constant reference to a string containing the isolation level to be used. |
|
inlineexplicit |
Constructor starting the transaction using the default isolation level.
db | Reference to the database connection to be used. |
|
inlinevirtual |
Destructor committing the transaction on success.
|
delete |
Deleted copy constructor.
|
delete |
Deleted move constructor.
|
delete |
Deleted copy assignment operator.
|
delete |
Deleted move assignment operator.
|
inline |
Sets the state of the transaction to successful.
The transaction will be committed on destruction.
Referenced by crawlservpp::Main::Database::moveWebsite().