◆ FunctionCount()
246767 {
246768 return entry.functions.Size();
246769 }
◆ GetFunctionType()
| Value duckdb::PragmaFunctionExtractor::GetFunctionType |
( |
| ) |
|
|
inlinestatic |
246771 {
246772 return Value("pragma");
246773 }
◆ GetReturnType()
246775 {
246776 return Value();
246777 }
◆ GetParameters()
246779 {
246780 vector<Value> results;
246781 auto fun = entry.functions.GetFunctionByOffset(offset);
246782
246783 for (
idx_t i = 0; i < fun.arguments.size(); i++) {
246784 results.emplace_back(
"col" +
to_string(i));
246785 }
246786 for (auto ¶m : fun.named_parameters) {
246787 results.emplace_back(param.first);
246788 }
246789 return results;
246790 }
std::string to_string(const T &value)
Definition duckdb.cpp:19425
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ GetParameterTypes()
246792 {
246793 vector<Value> results;
246794 auto fun = entry.functions.GetFunctionByOffset(offset);
246795
246796 for (
idx_t i = 0; i < fun.arguments.size(); i++) {
246797 results.emplace_back(fun.arguments[i].ToString());
246798 }
246799 for (auto ¶m : fun.named_parameters) {
246800 results.emplace_back(param.second.ToString());
246801 }
246802 return Value::LIST(LogicalType::VARCHAR, std::move(results));
246803 }
static DUCKDB_API Value LIST(const LogicalType &child_type, vector< Value > values)
Create a list value with the given entries.
Definition duckdb.cpp:132555
◆ GetParameterLogicalTypes()
246805 {
246806 auto fun = entry.functions.GetFunctionByOffset(offset);
246807 return fun.arguments;
246808 }
◆ GetVarArgs()
246810 {
246811 auto fun = entry.functions.GetFunctionByOffset(offset);
246812 return !fun.HasVarArgs() ? Value() : Value(fun.varargs.ToString());
246813 }
◆ GetMacroDefinition()
246815 {
246816 return Value();
246817 }
◆ IsVolatile()
246819 {
246820 return Value();
246821 }
◆ ResultType()
246823 {
246824 return Value();
246825 }
The documentation for this struct was generated from the following file: