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::ClientContextWrapper Class Reference
Inheritance diagram for duckdb::ClientContextWrapper:
Collaboration diagram for duckdb::ClientContextWrapper:

Public Member Functions

 ClientContextWrapper (const shared_ptr< ClientContext > &context)
shared_ptr< ClientContext > GetContext ()
shared_ptr< ClientContext > TryGetContext ()
virtual void TryBindRelation (Relation &relation, vector< ColumnDefinition > &columns)

Private Attributes

weak_ptr< ClientContext > client_context

Constructor & Destructor Documentation

◆ ClientContextWrapper()

duckdb::ClientContextWrapper::ClientContextWrapper ( const shared_ptr< ClientContext > & context)
explicit
274076 : client_context(context) {
274077}

Member Function Documentation

◆ GetContext()

shared_ptr< ClientContext > duckdb::ClientContextWrapper::GetContext ( )
274084 {
274085 auto actual_context = TryGetContext();
274086 if (!actual_context) {
274087 throw ConnectionException("Connection has already been closed");
274088 }
274089 return actual_context;
274090}

◆ TryGetContext()

shared_ptr< ClientContext > duckdb::ClientContextWrapper::TryGetContext ( )
274079 {
274080 auto actual_context = client_context.lock();
274081 return actual_context;
274082}

◆ TryBindRelation()

void duckdb::ClientContextWrapper::TryBindRelation ( Relation & relation,
vector< ColumnDefinition > & columns )
virtual
274092 {
274093 GetContext()->TryBindRelation(relation, columns);
274094}

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