◆ FunctionCount()
246578 {
246579 return entry.macros.size();
246580 }
◆ GetFunctionType()
| Value duckdb::MacroExtractor::GetFunctionType |
( |
| ) |
|
|
inlinestatic |
246582 {
246583 return Value("macro");
246584 }
◆ GetReturnType()
246586 {
246587 return Value();
246588 }
◆ GetParameters()
246590 {
246591 vector<Value> results;
246592 auto ¯o_entry = *entry.macros[offset];
246593 for (auto ¶m : macro_entry.parameters) {
246594 D_ASSERT(param->GetExpressionType() == ExpressionType::COLUMN_REF);
246595 auto &colref = param->Cast<ColumnRefExpression>();
246596 results.emplace_back(colref.GetColumnName());
246597 }
246598 return results;
246599 }
◆ GetParameterTypes()
246601 {
246602 vector<Value> results;
246603 auto ¯o_entry = *entry.macros[offset];
246604 for (
idx_t i = 0; i < macro_entry.parameters.size(); i++) {
246605 const auto has_type = !macro_entry.types.empty() && macro_entry.types[i] != LogicalType::UNKNOWN;
246606 results.emplace_back(has_type ? macro_entry.types[i].ToString() : Value(LogicalType::VARCHAR));
246607 }
246608 return Value::LIST(LogicalType::VARCHAR, std::move(results));
246609 }
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()
246611 {
246612 vector<LogicalType> results;
246613 auto ¯o_entry = *entry.macros[offset];
246614 for (
idx_t i = 0; i < macro_entry.parameters.size(); i++) {
246615 results.emplace_back(macro_entry.types.empty() ? LogicalType::UNKNOWN : macro_entry.types[i]);
246616 }
246617 return results;
246618 }
◆ GetVarArgs()
246620 {
246621 return Value();
246622 }
◆ GetMacroDefinition()
246624 {
246625 auto ¯o_entry = *entry.macros[offset];
246626 D_ASSERT(macro_entry.type == MacroType::SCALAR_MACRO);
246627 auto &func = macro_entry.Cast<ScalarMacroFunction>();
246628 return func.expression->ToString();
246629 }
◆ IsVolatile()
246631 {
246632 return Value();
246633 }
◆ ResultType()
246635 {
246636 return Value();
246637 }
The documentation for this struct was generated from the following file: