Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::Transaction Class Reference
Inheritance diagram for duckdb::Transaction:
Collaboration diagram for duckdb::Transaction:

Public Member Functions

DUCKDB_API Transaction (TransactionManager &manager, ClientContext &context)
 
DUCKDB_API bool IsReadOnly ()
 Whether or not the transaction has made any modifications to the database so far.
 
virtual DUCKDB_API void SetReadWrite ()
 Promotes the transaction to a read-write transaction.
 
virtual DUCKDB_API void SetModifications (DatabaseModificationType type)
 Sets the database modifications that are planned to be performed in this transaction.
 
virtual bool IsDuckTransaction () const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Static Public Member Functions

static DUCKDB_API TransactionGet (ClientContext &context, AttachedDatabase &db)
 
static DUCKDB_API TransactionGet (ClientContext &context, Catalog &catalog)
 
static DUCKDB_API optional_ptr< TransactionTryGet (ClientContext &context, AttachedDatabase &db)
 Returns the transaction for the given context if it has already been started.
 

Public Attributes

TransactionManagermanager
 
weak_ptr< ClientContextcontext
 
atomic< transaction_tactive_query
 

Private Attributes

bool is_read_only
 

Detailed Description

The transaction object holds information about a currently running or past transaction

Member Function Documentation

◆ SetModifications()

virtual DUCKDB_API void duckdb::Transaction::SetModifications ( DatabaseModificationType  type)
virtual

Sets the database modifications that are planned to be performed in this transaction.

Reimplemented in duckdb::DuckTransaction.

◆ IsDuckTransaction()

virtual bool duckdb::Transaction::IsDuckTransaction ( ) const
inlinevirtual
29077 {
29078 return false;
29079 }

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::Transaction::Cast ( )
inline
29083 {
29084 DynamicCastCheck<TARGET>(this);
29085 return reinterpret_cast<TARGET &>(*this);
29086 }

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::Transaction::Cast ( ) const
inline
29088 {
29089 DynamicCastCheck<TARGET>(this);
29090 return reinterpret_cast<const TARGET &>(*this);
29091 }

Member Data Documentation

◆ active_query

atomic<transaction_t> duckdb::Transaction::active_query

The current active query for the transaction. Set to MAXIMUM_QUERY_ID if no query is active.


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