Feature #1354 ยป add-session-property-to-transaction.diff
src/Wt/Dbo/Transaction | ||
---|---|---|
* \sa commit()
|
||
*/
|
||
void rollback();
|
||
|
||
/*! \brief Returns the session associated with this transaction.
|
||
*
|
||
* This is the same session that was set in the constructor.
|
||
*/
|
||
Session& session() const;
|
||
private:
|
||
struct Impl {
|
src/Wt/Dbo/Transaction.C | ||
---|---|---|
impl_->rollback();
|
||
}
|
||
Session& Transaction::session() const
|
||
{
|
||
return session_;
|
||
}
|
||
Transaction::Impl::Impl(Session& session)
|
||
: session_(session),
|
||
active_(true),
|