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

Public Member Functions

DUCKDB_API CreateScalarFunctionInfo (ScalarFunction function)
DUCKDB_API CreateScalarFunctionInfo (ScalarFunctionSet set)
DUCKDB_API unique_ptr< CreateInfo > Copy () const override
DUCKDB_API unique_ptr< AlterInfo > GetAlterInfo () const override
 Generates an alter statement from the create statement - used for OnCreateConflict::ALTER_ON_CONFLICT.
Public Member Functions inherited from duckdb::CreateFunctionInfo
 CreateFunctionInfo (CatalogType type, string schema=DEFAULT_SCHEMA)
DUCKDB_API void CopyFunctionProperties (CreateFunctionInfo &other) const
Public Member Functions inherited from duckdb::CreateInfo
 CreateInfo (CatalogType type, string schema=DEFAULT_SCHEMA, string catalog_p=INVALID_CATALOG)
void Serialize (Serializer &serializer) const override
DUCKDB_API void CopyProperties (CreateInfo &other) const
DUCKDB_API string GetCreatePrefix (const string &entry) const
 Returns a string like "CREATE (OR REPLACE) (TEMPORARY) <entry> (IF NOT EXISTS) " for TABLE/VIEW/TYPE/MACRO.
virtual string ToString () const
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

ScalarFunctionSet functions
Public Attributes inherited from duckdb::CreateFunctionInfo
string name
 Function name.
string alias_of
 The function name of which this function is an alias.
vector< FunctionDescription > descriptions
 Function description.
Public Attributes inherited from duckdb::CreateInfo
CatalogType type
 The to-be-created catalog type.
string catalog
 The catalog name of the entry.
string schema
 The schema name of the entry.
OnCreateConflict on_conflict
 What to do on create conflict.
bool temporary
 Whether or not the entry is temporary.
bool internal
 Whether or not the entry is an internal entry.
string sql
 The SQL string of the CREATE statement.
LogicalDependencyList dependencies
 The inherent dependencies of the created entry.
Value comment
 User provided comment.
InsertionOrderPreservingMap< string > tags
 Key-value tags with additional metadata.
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Additional Inherited Members

Static Public Member Functions inherited from duckdb::CreateInfo
static unique_ptr< CreateInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)
Static Public Attributes inherited from duckdb::CreateInfo
static constexpr const ParseInfoType TYPE = ParseInfoType::CREATE_INFO

Constructor & Destructor Documentation

◆ CreateScalarFunctionInfo() [1/2]

duckdb::CreateScalarFunctionInfo::CreateScalarFunctionInfo ( ScalarFunction function)
explicit
339532 : CreateFunctionInfo(CatalogType::SCALAR_FUNCTION_ENTRY), functions(function.name) {
339533 name = function.name;
339534 functions.AddFunction(std::move(function));
339535 internal = true;
339536}
string name
Function name.
Definition duckdb.hpp:57707
bool internal
Whether or not the entry is an internal entry.
Definition duckdb.hpp:28168

◆ CreateScalarFunctionInfo() [2/2]

duckdb::CreateScalarFunctionInfo::CreateScalarFunctionInfo ( ScalarFunctionSet set)
explicit
339538 : CreateFunctionInfo(CatalogType::SCALAR_FUNCTION_ENTRY), functions(std::move(set)) {
339539 name = functions.name;
339540 for (auto &func : functions.functions) {
339541 func.name = functions.name;
339542 }
339543 internal = true;
339544}

Member Function Documentation

◆ Copy()

unique_ptr< CreateInfo > duckdb::CreateScalarFunctionInfo::Copy ( ) const
overridevirtual

Implements duckdb::CreateInfo.

339546 {
339547 ScalarFunctionSet set(name);
339548 set.functions = functions.functions;
339549 auto result = make_uniq<CreateScalarFunctionInfo>(std::move(set));
339550 CopyFunctionProperties(*result);
339551 return std::move(result);
339552}

◆ GetAlterInfo()

unique_ptr< AlterInfo > duckdb::CreateScalarFunctionInfo::GetAlterInfo ( ) const
overridevirtual

Generates an alter statement from the create statement - used for OnCreateConflict::ALTER_ON_CONFLICT.

Reimplemented from duckdb::CreateInfo.

339554 {
339555 return make_uniq_base<AlterInfo, AddScalarFunctionOverloadInfo>(
339556 AlterEntryData(catalog, schema, name, OnEntryNotFound::RETURN_NULL),
339557 unique_ptr_cast<CreateInfo, CreateScalarFunctionInfo>(Copy()));
339558}
string catalog
The catalog name of the entry.
Definition duckdb.hpp:28160
string schema
The schema name of the entry.
Definition duckdb.hpp:28162

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