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

Public Types

using RETURN_TYPE = string

Static Public Member Functions

static void SetGlobal (DatabaseInstance *db, DBConfig &config, const Value &parameter)
static void ResetGlobal (DatabaseInstance *db, DBConfig &config)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "enabled_log_types"
static constexpr const char * Description = "Sets the list of enabled loggers"
static constexpr const char * InputType = "VARCHAR"

Member Function Documentation

◆ SetGlobal()

void duckdb::EnabledLogTypes::SetGlobal ( DatabaseInstance * db,
DBConfig & config,
const Value & parameter )
static
302277 {
302278 auto &db = GetDB<EnabledLogTypes>(db_p);
302279
302280 auto values = StringUtil::Split(parameter.GetValue<string>(), ",");
302281 unordered_set<string> set;
302282 for (const auto &value : values) {
302283 set.insert(value);
302284 }
302285 db.GetLogManager().SetEnabledLogTypes(set);
302286}
static DUCKDB_API vector< string > Split(const string &str, char delimiter)
Split the input string based on newline char.
Definition duckdb.cpp:109734
db

◆ ResetGlobal()

void duckdb::EnabledLogTypes::ResetGlobal ( DatabaseInstance * db,
DBConfig & config )
static
302288 {
302289 auto &db = GetDB<EnabledLogTypes>(db_p);
302290 unordered_set<string> set;
302291 db.GetLogManager().SetEnabledLogTypes(set);
302292}

◆ GetSetting()

Value duckdb::EnabledLogTypes::GetSetting ( const ClientContext & context)
static
302270 {
302271 vector<string> loggers;
302272 for (const auto &item : context.db->GetLogManager().GetConfig().enabled_log_types) {
302273 loggers.push_back(item);
302274 }
302275 return StringUtil::Join(loggers, ",");
302276}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497

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