|
| 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) |
◆ Get() [1/6]
template<class OP, class SOURCE>
| 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>
| 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>
| 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 }
4588 }
static bool Equals(const char *s1, const char *s2)
Definition duckdb.hpp:4060
◆ Get() [4/6]
template<class OP, class SOURCE>
| 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>
| 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>
| 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 }
◆ TryGetSettingInternal() [1/3]
303031 {
303032 return TryGetSettingInternal(DBConfig::GetConfig(db), setting_index, result);
303033}
◆ TryGetSettingInternal() [2/3]
| bool duckdb::Settings::TryGetSettingInternal |
( |
const DBConfig & | config, |
|
|
idx_t | setting_index, |
|
|
Value & | result ) |
|
staticprivate |
303026 {
303028 return lookup_result;
303029}
SettingLookupResult TryGetCurrentUserSetting(idx_t setting_index, Value &result) const
Returns the value of a setting set by the user currently.
Definition duckdb.cpp:275249
◆ TryGetSettingInternal() [3/3]
| bool duckdb::Settings::TryGetSettingInternal |
( |
const ClientContext & | context, |
|
|
idx_t | setting_index, |
|
|
Value & | result ) |
|
staticprivate |
303022 {
303023 return context.TryGetCurrentUserSetting(setting_index, result);
303024}
The documentation for this struct was generated from the following file: