◆ FunctionCount()
246641 {
246642 return entry.macros.size();
246643 }
◆ GetFunctionType()
| Value duckdb::TableMacroExtractor::GetFunctionType |
( |
| ) |
|
|
inlinestatic |
246645 {
246646 return Value("table_macro");
246647 }
◆ GetReturnType()
246649 {
246650 return Value();
246651 }
◆ GetParameters()
246653 {
246654 vector<Value> results;
246655 auto ¯o_entry = *entry.macros[offset];
246656 for (auto ¶m : macro_entry.parameters) {
246657 D_ASSERT(param->GetExpressionType() == ExpressionType::COLUMN_REF);
246658 auto &colref = param->Cast<ColumnRefExpression>();
246659 results.emplace_back(colref.GetColumnName());
246660 }
246661 return results;
246662 }
◆ GetParameterTypes()
246664 {
246665 vector<Value> results;
246666 auto ¯o_entry = *entry.macros[offset];
246667 for (
idx_t i = 0; i < macro_entry.parameters.size(); i++) {
246668 const auto has_type = !macro_entry.types.empty() && macro_entry.types[i] != LogicalType::UNKNOWN;
246669 results.emplace_back(has_type ? macro_entry.types[i].ToString() : Value(LogicalType::VARCHAR));
246670 }
246671 return Value::LIST(LogicalType::VARCHAR, std::move(results));
246672 }
static DUCKDB_API Value LIST(const LogicalType &child_type, vector< Value > values)
Create a list value with the given entries.
Definition duckdb.cpp:132555
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ GetParameterLogicalTypes()
246674 {
246675 vector<LogicalType> results;
246676 auto ¯o_entry = *entry.macros[offset];
246677 for (
idx_t i = 0; i < macro_entry.parameters.size(); i++) {
246678 results.emplace_back(macro_entry.types.empty() ? LogicalType::UNKNOWN : macro_entry.types[i]);
246679 }
246680 return results;
246681 }
◆ GetVarArgs()
246683 {
246684 return Value();
246685 }
◆ GetMacroDefinition()
246687 {
246688 auto ¯o_entry = *entry.macros[offset];
246689 if (macro_entry.type == MacroType::TABLE_MACRO) {
246690 auto &func = macro_entry.Cast<TableMacroFunction>();
246691 return func.query_node->ToString();
246692 }
246693 return Value();
246694 }
◆ IsVolatile()
246696 {
246697 return Value();
246698 }
◆ ResultType()
246700 {
246701 return Value();
246702 }
The documentation for this struct was generated from the following file: