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

Static Public Member Functions

static DUCKDB_API LogicalType TryParseAndDefaultBind (const string &type_str)
static DUCKDB_API LogicalType TryDefaultBind (const LogicalType &unbound_type)
static DUCKDB_API const unique_ptr< ParsedExpression > & GetTypeExpression (const LogicalType &type)

Member Function Documentation

◆ TryParseAndDefaultBind()

LogicalType duckdb::UnboundType::TryParseAndDefaultBind ( const string & type_str)
static
141027 {
141028 if (type_str.empty()) {
141029 return LogicalType::INVALID;
141030 }
141031 try {
141032 ColumnList list = Parser::ParseColumnList("dummy " + type_str);
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()

LogicalType duckdb::UnboundType::TryDefaultBind ( const LogicalType & unbound_type)
static
141079 {
141080 if (!unbound_type.IsUnbound()) {
141081 return unbound_type;
141082 }
141083 auto &expr = UnboundType::GetTypeExpression(unbound_type);
141084 return TryDefaultBindTypeExpression(*expr);
141085}

◆ GetTypeExpression()

const unique_ptr< ParsedExpression > & duckdb::UnboundType::GetTypeExpression ( const LogicalType & type)
static
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: