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::ClientData Struct Reference
Collaboration diagram for duckdb::ClientData:

Public Member Functions

 ClientData (ClientContext &context)

Static Public Member Functions

static DUCKDB_API ClientData & Get (ClientContext &context)
static DUCKDB_API const ClientData & Get (const ClientContext &context)

Public Attributes

shared_ptr< QueryProfiler > profiler
 The query profiler of this client.
shared_ptr< AttachedDatabase > temporary_objects
 The set of temporary objects belonging to this client.
case_insensitive_map_t< shared_ptr< PreparedStatementData > > prepared_statements
 The set of bound prepared statements belonging to this client.
unique_ptr< RandomEngine > random_engine
unique_ptr< CatalogSearchPath > catalog_search_path
 The catalog search path.
unique_ptr< FileOpener > file_opener
 The file opener of the client context.
unique_ptr< FileSystem > client_file_system
 The clients' file system wrapper.
unique_ptr< BufferManager > client_buffer_manager
 The clients' buffer manager wrapper.
bool debug_set_max_line_length = false
idx_t debug_max_line_length = 0
unique_ptr< BufferedFileWriter > log_query_writer

Constructor & Destructor Documentation

◆ ClientData()

duckdb::ClientData::ClientData ( ClientContext & context)
explicit
274309 : catalog_search_path(make_uniq<CatalogSearchPath>(context)) {
274310 auto &db = DatabaseInstance::GetDatabase(context);
274311
274312 profiler = make_shared_ptr<QueryProfiler>(context);
274313 temporary_objects = make_shared_ptr<AttachedDatabase>(db, AttachedDatabaseType::TEMP_DATABASE);
274314 temporary_objects->oid = DatabaseManager::Get(db).NextOid();
274315 random_engine = make_uniq<RandomEngine>();
274316 file_opener = make_uniq<ClientContextFileOpener>(context);
274317 client_file_system = make_uniq<ClientFileSystem>(context);
274318 client_buffer_manager = make_uniq<ClientBufferManager>(context, db.GetBufferManager());
274319
274320 temporary_objects->Initialize();
274321}
db
unique_ptr< RandomEngine > random_engine
Definition duckdb.cpp:3083
unique_ptr< FileOpener > file_opener
The file opener of the client context.
Definition duckdb.cpp:3089
shared_ptr< AttachedDatabase > temporary_objects
The set of temporary objects belonging to this client.
Definition duckdb.cpp:3077
unique_ptr< CatalogSearchPath > catalog_search_path
The catalog search path.
Definition duckdb.cpp:3086
unique_ptr< BufferManager > client_buffer_manager
The clients' buffer manager wrapper.
Definition duckdb.cpp:3093
unique_ptr< FileSystem > client_file_system
The clients' file system wrapper.
Definition duckdb.cpp:3091
shared_ptr< QueryProfiler > profiler
The query profiler of this client.
Definition duckdb.cpp:3074

◆ ~ClientData()

duckdb::ClientData::~ClientData ( )
274323 {
274324 // This needs to be destroyed first because PreparedStatementData holds a PhysicalPlan,
274325 // and the PhysicalPlan holds objects that might rely on the client file opener/file system/buffer manager
274326 prepared_statements.clear();
274327}
case_insensitive_map_t< shared_ptr< PreparedStatementData > > prepared_statements
The set of bound prepared statements belonging to this client.
Definition duckdb.cpp:3079

Member Function Documentation

◆ Get() [1/2]

ClientData & duckdb::ClientData::Get ( ClientContext & context)
static
274329 {
274330 return *context.client_data;
274331}

◆ Get() [2/2]

const ClientData & duckdb::ClientData::Get ( const ClientContext & context)
static
274333 {
274334 return *context.client_data;
274335}

Member Data Documentation

◆ random_engine

unique_ptr<RandomEngine> duckdb::ClientData::random_engine

The random generator used by random(). Its seed value can be set by setseed().

◆ debug_set_max_line_length

bool duckdb::ClientData::debug_set_max_line_length = false

The Max Line Length Size of Last Query Executed on a CSV File. (Only used for testing) FIXME: this should not be done like this

◆ log_query_writer

unique_ptr<BufferedFileWriter> duckdb::ClientData::log_query_writer

The writer used to log queries, if logging is enabled. DEPRECATED: Now, queries are written to the generic log.


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