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::ParseInfo Struct Reference
Inheritance diagram for duckdb::ParseInfo:

Public Member Functions

 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
virtual void Serialize (Serializer &serializer) const

Static Public Member Functions

static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

ParseInfoType info_type

Constructor & Destructor Documentation

◆ ParseInfo()

duckdb::ParseInfo::ParseInfo ( ParseInfoType info_type)
inlineexplicit
28083 : info_type(info_type) {
28084 }

◆ ~ParseInfo()

virtual duckdb::ParseInfo::~ParseInfo ( )
inlinevirtual
28085 {
28086 }

Member Function Documentation

◆ Cast() [1/2]

template<class TARGET>
TARGET & duckdb::ParseInfo::Cast ( )
inline
28092 {
28093 DynamicCastCheck<TARGET>(this);
28094 return reinterpret_cast<TARGET &>(*this);
28095 }

◆ Cast() [2/2]

template<class TARGET>
const TARGET & duckdb::ParseInfo::Cast ( ) const
inline
28098 {
28099 DynamicCastCheck<TARGET>(this);
28100 return reinterpret_cast<const TARGET &>(*this);
28101 }

◆ Serialize()

void duckdb::ParseInfo::Serialize ( Serializer & serializer) const
virtual
417959 {
417960 serializer.WriteProperty<ParseInfoType>(100, "info_type", info_type);
417961}

◆ Deserialize()

unique_ptr< ParseInfo > duckdb::ParseInfo::Deserialize ( Deserializer & deserializer)
static
417963 {
417964 auto info_type = deserializer.ReadProperty<ParseInfoType>(100, "info_type");
417965 unique_ptr<ParseInfo> result;
417966 switch (info_type) {
417967 case ParseInfoType::ALTER_INFO:
417968 result = AlterInfo::Deserialize(deserializer);
417969 break;
417970 case ParseInfoType::ATTACH_INFO:
417971 result = AttachInfo::Deserialize(deserializer);
417972 break;
417973 case ParseInfoType::BOUND_EXPORT_DATA:
417974 result = BoundExportData::Deserialize(deserializer);
417975 break;
417976 case ParseInfoType::COPY_DATABASE_INFO:
417977 result = CopyDatabaseInfo::Deserialize(deserializer);
417978 break;
417979 case ParseInfoType::COPY_INFO:
417980 result = CopyInfo::Deserialize(deserializer);
417981 break;
417982 case ParseInfoType::DETACH_INFO:
417983 result = DetachInfo::Deserialize(deserializer);
417984 break;
417985 case ParseInfoType::DROP_INFO:
417986 result = DropInfo::Deserialize(deserializer);
417987 break;
417988 case ParseInfoType::LOAD_INFO:
417989 result = LoadInfo::Deserialize(deserializer);
417990 break;
417991 case ParseInfoType::PRAGMA_INFO:
417992 result = PragmaInfo::Deserialize(deserializer);
417993 break;
417994 case ParseInfoType::TRANSACTION_INFO:
417995 result = TransactionInfo::Deserialize(deserializer);
417996 break;
417997 case ParseInfoType::UPDATE_EXTENSIONS_INFO:
417998 result = UpdateExtensionsInfo::Deserialize(deserializer);
417999 break;
418000 case ParseInfoType::VACUUM_INFO:
418001 result = VacuumInfo::Deserialize(deserializer);
418002 break;
418003 default:
418004 throw SerializationException("Unsupported type for deserialization of ParseInfo!");
418005 }
418006 return result;
418007}

◆ QualifierToString()

string duckdb::ParseInfo::QualifierToString ( const string & catalog,
const string & schema,
const string & name )
static
340184 {
340185 string result;
340186 if (!catalog.empty()) {
340187 result += KeywordHelper::WriteOptionallyQuoted(catalog) + ".";
340188 if (!schema.empty()) {
340189 result += KeywordHelper::WriteOptionallyQuoted(schema) + ".";
340190 }
340191 } else if (!schema.empty() && schema != DEFAULT_SCHEMA) {
340192 result += KeywordHelper::WriteOptionallyQuoted(schema) + ".";
340193 }
340194 result += KeywordHelper::WriteOptionallyQuoted(name);
340195 return result;
340196}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034

◆ TypeToString()

string duckdb::ParseInfo::TypeToString ( CatalogType type)
static
340156 {
340157 switch (type) {
340158 case CatalogType::TABLE_ENTRY:
340159 return "TABLE";
340160 case CatalogType::SCALAR_FUNCTION_ENTRY:
340161 return "FUNCTION";
340162 case CatalogType::INDEX_ENTRY:
340163 return "INDEX";
340164 case CatalogType::SCHEMA_ENTRY:
340165 return "SCHEMA";
340166 case CatalogType::TYPE_ENTRY:
340167 return "TYPE";
340168 case CatalogType::VIEW_ENTRY:
340169 return "VIEW";
340170 case CatalogType::SEQUENCE_ENTRY:
340171 return "SEQUENCE";
340172 case CatalogType::MACRO_ENTRY:
340173 return "MACRO";
340174 case CatalogType::TABLE_MACRO_ENTRY:
340175 return "MACRO TABLE";
340176 case CatalogType::SECRET_ENTRY:
340177 return "SECRET";
340178 default:
340179 throw InternalException("ParseInfo::TypeToString for CatalogType with type: %s not implemented",
340180 EnumUtil::ToString(type));
340181 }
340182}

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