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::LogQueryPathSetting Struct Reference

Public Types

using RETURN_TYPE = string

Static Public Member Functions

static void OnSet (SettingCallbackInfo &info, Value &input)

Static Public Attributes

static constexpr const char * Name = "log_query_path"
static constexpr const char * Description
static constexpr const char * InputType = "VARCHAR"
static constexpr const char * DefaultValue = ""
static constexpr SettingScopeTarget Scope = SettingScopeTarget::LOCAL_DEFAULT
static constexpr idx_t SettingIndex = 66

Member Function Documentation

◆ OnSet()

void duckdb::LogQueryPathSetting::OnSet ( SettingCallbackInfo & info,
Value & input )
static
302594 {
302595 if (!info.context) {
302596 throw InvalidInputException("log_query_path can only be set when a context is present");
302597 }
302598 auto &client_data = ClientData::Get(*info.context);
302599 auto path = input.ToString();
302600 if (path.empty()) {
302601 // empty path: clean up query writer
302602 client_data.log_query_writer = nullptr;
302603 } else {
302604 client_data.log_query_writer = make_uniq<BufferedFileWriter>(FileSystem::GetFileSystem(*info.context), path,
302605 BufferedFileWriter::DEFAULT_OPEN_FLAGS);
302606 }
302607}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318

Member Data Documentation

◆ Description

const char* duckdb::LogQueryPathSetting::Description
staticconstexpr
Initial value:
=
"Specifies the path to which queries should be logged (default: NULL, queries are not logged)"

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