|
| 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]
| 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]
| 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]
| 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 }
4588 }
static bool Equals(const char *s1, const char *s2)
Definition duckdb.hpp:4060
◆ Get() [4/6]
| 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]
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]
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:
- external/duckdb/duckdb.cpp