◆ TryParseAndDefaultBind()
| LogicalType duckdb::UnboundType::TryParseAndDefaultBind |
( |
const string & | type_str | ) |
|
|
static |
141027 {
141028 if (type_str.empty()) {
141029 return LogicalType::INVALID;
141030 }
141031 try {
141033 auto unbound = list.GetColumn(LogicalIndex(0)).Type();
141034 return TryDefaultBind(unbound);
141035 } catch (const std::runtime_error &e) {
141036 throw InvalidInputException("Could not parse type string '%s'", type_str);
141037 }
141038}
static ColumnList ParseColumnList(const string &column_list, ParserOptions options=ParserOptions())
Parses a column list (i.e. as found in a CREATE TABLE statement).
Definition duckdb.cpp:347643
◆ TryDefaultBind()
141079 {
141080 if (!unbound_type.IsUnbound()) {
141081 return unbound_type;
141082 }
141083 auto &expr = UnboundType::GetTypeExpression(unbound_type);
141084 return TryDefaultBindTypeExpression(*expr);
141085}
◆ GetTypeExpression()
141020 {
141021 D_ASSERT(type.id() == LogicalTypeId::UNBOUND);
141022 auto info = type.AuxInfo();
141023 D_ASSERT(info->type == ExtraTypeInfoType::UNBOUND_TYPE_INFO);
141024 return info->Cast<UnboundTypeInfo>().expr;
141025}
The documentation for this struct was generated from the following files: