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

Public Types

using RETURN_TYPE = vector<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 = "allowed_configs"
static constexpr const char * Description
static constexpr const char * InputType = "VARCHAR[]"

Member Function Documentation

◆ SetGlobal()

void duckdb::AllowedConfigsSetting::SetGlobal ( DatabaseInstance * db,
DBConfig & config,
const Value & parameter )
static
301522 {
301523 config.options.allowed_configs.clear();
301524 auto &list = ListValue::GetChildren(input);
301525 for (auto &val : list) {
301526 config.AddAllowedConfig(val.GetValue<string>());
301527 }
301528}
case_insensitive_set_t allowed_configs
Additional configuration options that are allowed to be changed even when the configuration is locked...
Definition duckdb.hpp:40058
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090

◆ ResetGlobal()

void duckdb::AllowedConfigsSetting::ResetGlobal ( DatabaseInstance * db,
DBConfig & config )
static
301530 {
301531 config.options.allowed_configs = DBConfigOptions().allowed_configs;
301532}

◆ GetSetting()

Value duckdb::AllowedConfigsSetting::GetSetting ( const ClientContext & context)
static
301534 {
301535 auto &config = DBConfig::GetConfig(context);
301536 vector<Value> configs;
301537 for (auto &cfg : config.options.allowed_configs) {
301538 configs.emplace_back(cfg);
301539 }
301540 return Value::LIST(LogicalType::VARCHAR, std::move(configs));
301541}
static DUCKDB_API Value LIST(const LogicalType &child_type, vector< Value > values)
Create a list value with the given entries.
Definition duckdb.cpp:132555

Member Data Documentation

◆ Description

const char* duckdb::AllowedConfigsSetting::Description
staticconstexpr
Initial value:
=
"List of configuration options that are ALWAYS allowed to be changed - even when lock_configuration is true"

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