MySQL 8.4.2
Source Code Documentation
StartTransaction Class Reference

#include <start_transaction_parser.h>

Public Types

enum class  AccessMode { ReadOnly , ReadWrite }
 

Public Member Functions

 StartTransaction ()=default
 
 StartTransaction (std::optional< AccessMode > access_mode, bool with_consistent_snapshot)
 
std::optional< AccessModeaccess_mode () const
 
bool with_consistent_snapshot () const
 

Private Attributes

std::optional< AccessModeaccess_mode_
 
bool with_consistent_snapshot_ {false}
 

Member Enumeration Documentation

◆ AccessMode

enum class StartTransaction::AccessMode
strong
Enumerator
ReadOnly 
ReadWrite 

Constructor & Destructor Documentation

◆ StartTransaction() [1/2]

StartTransaction::StartTransaction ( )
default

◆ StartTransaction() [2/2]

StartTransaction::StartTransaction ( std::optional< AccessMode access_mode,
bool  with_consistent_snapshot 
)
inline

Member Function Documentation

◆ access_mode()

std::optional< AccessMode > StartTransaction::access_mode ( ) const
inline

◆ with_consistent_snapshot()

bool StartTransaction::with_consistent_snapshot ( ) const
inline

Member Data Documentation

◆ access_mode_

std::optional<AccessMode> StartTransaction::access_mode_
private

◆ with_consistent_snapshot_

bool StartTransaction::with_consistent_snapshot_ {false}
private

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