Workspace 6.21.5
|
Wrapper of a mongo transaction over a Session.
#include <Distributed/mongocxx.h>
Classes | |
class | Wrapper |
Public Member Functions | |
Transaction (Session &session, MongoInternal) | |
~Transaction () | |
void | commit () |
const Mongo::Bson & | opts () const |
void | rollback () noexcept |
Static Public Member Functions | |
static bool | support (const Client &client) |
Transaction | ( | Session & | session, |
MongoInternal | |||
) |
|
inline |
void commit | ( | ) |
Commit a transaction. Throw exception when called outside a transaction.
|
inline |
|
noexcept |
Rollback a transaction.
|
static |