Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
atlas::database::TransactionBase< is_commitable > Struct Template Reference

#include <Transaction.hpp>

Public Member Functions

 TransactionBase ()
 
 TransactionBase (const TransactionBase &)=delete
 
 TransactionBase (TransactionBase &&)=delete
 
TransactionBaseoperator= (const TransactionBase &other)=delete
 
Binder operator<< (std::string_view sql)
 
template<std::uint64_t size>
Binder operator<< (const char(&raw_str)[size - 1])
 
void commit ()
 
void abort ()
 
 ~TransactionBase () noexcept(false)
 
 TransactionBase ()
 
 ~TransactionBase () noexcept(false)
 
void commit ()
 
void abort ()
 
 TransactionBase ()
 
 ~TransactionBase () noexcept(false)
 
void commit ()
 
void abort ()
 

Public Attributes

bool m_finished { false }
 
std::mutex self_mtx {}
 
std::lock_guard< std::mutex > guard
 

Constructor & Destructor Documentation

◆ TransactionBase() [1/5]

template<bool is_commitable = false>
atlas::database::TransactionBase< is_commitable >::TransactionBase ( )

◆ TransactionBase() [2/5]

template<bool is_commitable = false>
atlas::database::TransactionBase< is_commitable >::TransactionBase ( const TransactionBase< is_commitable > & )
delete

◆ TransactionBase() [3/5]

template<bool is_commitable = false>
atlas::database::TransactionBase< is_commitable >::TransactionBase ( TransactionBase< is_commitable > && )
delete

◆ ~TransactionBase() [1/3]

template<bool is_commitable = false>
atlas::database::TransactionBase< is_commitable >::~TransactionBase ( )

◆ TransactionBase() [4/5]

atlas::database::TransactionBase< false >::TransactionBase ( )

◆ ~TransactionBase() [2/3]

◆ TransactionBase() [5/5]

atlas::database::TransactionBase< true >::TransactionBase ( )

◆ ~TransactionBase() [3/3]

Member Function Documentation

◆ abort() [1/3]

void atlas::database::TransactionBase< false >::abort ( )

◆ abort() [2/3]

void atlas::database::TransactionBase< true >::abort ( )

◆ abort() [3/3]

template<bool is_commitable = false>
void atlas::database::TransactionBase< is_commitable >::abort ( )

◆ commit() [1/3]

void atlas::database::TransactionBase< false >::commit ( )

◆ commit() [2/3]

void atlas::database::TransactionBase< true >::commit ( )

◆ commit() [3/3]

template<bool is_commitable = false>
void atlas::database::TransactionBase< is_commitable >::commit ( )

◆ operator<<() [1/2]

template<bool is_commitable = false>
template<std::uint64_t size>
Binder atlas::database::TransactionBase< is_commitable >::operator<< ( const char(&) raw_str[size - 1])
inline

◆ operator<<() [2/2]

template<bool is_commitable = false>
Binder atlas::database::TransactionBase< is_commitable >::operator<< ( std::string_view sql)
inline

◆ operator=()

template<bool is_commitable = false>
TransactionBase & atlas::database::TransactionBase< is_commitable >::operator= ( const TransactionBase< is_commitable > & other)
delete

Member Data Documentation

◆ guard

template<bool is_commitable = false>
std::lock_guard< std::mutex > atlas::database::TransactionBase< is_commitable >::guard

◆ m_finished

template<bool is_commitable = false>
bool atlas::database::TransactionBase< is_commitable >::m_finished { false }

◆ self_mtx

template<bool is_commitable = false>
std::mutex atlas::database::TransactionBase< is_commitable >::self_mtx {}

The documentation for this struct was generated from the following file: