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

Static Public Member Functions

template<class OP , class SOURCE >
static std::enable_if< std::is_enum< typenameOP::RETURN_TYPE >::value, typenameOP::RETURN_TYPE >::type Get (const SOURCE &source)
 
template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, string >::value, string >::type Get (const SOURCE &source)
 
template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, bool >::value, bool >::type Get (const SOURCE &source)
 
template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, idx_t >::value, idx_t >::type Get (const SOURCE &source)
 
template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, int64_t >::value, int64_t >::type Get (const SOURCE &source)
 
template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, double >::value, double >::type Get (const SOURCE &source)
 

Static Private Member Functions

static bool TryGetSettingInternal (const DatabaseInstance &db, idx_t setting_index, Value &result)
 
static bool TryGetSettingInternal (const DBConfig &config, idx_t setting_index, Value &result)
 
static bool TryGetSettingInternal (const ClientContext &context, idx_t setting_index, Value &result)
 

Member Function Documentation

◆ Get() [1/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_enum< typenameOP::RETURN_TYPE >::value, typenameOP::RETURN_TYPE >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4562 {
4563 Value result;
4564 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4565 return EnumUtil::FromString<typename OP::RETURN_TYPE>(StringValue::Get(result));
4566 }
4567 return EnumUtil::FromString<typename OP::RETURN_TYPE>(OP::DefaultValue);
4568 }

◆ Get() [2/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, string >::value, string >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4572 {
4573 Value result;
4574 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4575 return StringValue::Get(result);
4576 }
4577 return OP::DefaultValue;
4578 }

◆ Get() [3/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, bool >::value, bool >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4582 {
4583 Value result;
4584 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4585 return BooleanValue::Get(result);
4586 }
4587 return StringUtil::Equals(OP::DefaultValue, "true");
4588 }
static bool Equals(const char *s1, const char *s2)
Definition duckdb.hpp:4060

◆ Get() [4/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, idx_t >::value, idx_t >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4592 {
4593 Value result;
4594 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4595 return UBigIntValue::Get(result);
4596 }
4597 return StringUtil::ToUnsigned(OP::DefaultValue);
4598 }

◆ Get() [5/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, int64_t >::value, int64_t >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4602 {
4603 Value result;
4604 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4605 return BigIntValue::Get(result);
4606 }
4607 return StringUtil::ToSigned(OP::DefaultValue);
4608 }

◆ Get() [6/6]

template<class OP , class SOURCE >
static std::enable_if< std::is_same< typenameOP::RETURN_TYPE, double >::value, double >::type duckdb::Settings::Get ( const SOURCE source)
inlinestatic
4612 {
4613 Value result;
4614 if (TryGetSettingInternal(source, OP::SettingIndex, result) && !result.IsNull()) {
4615 return DoubleValue::Get(result);
4616 }
4617 return StringUtil::ToDouble(OP::DefaultValue);
4618 }

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