1 | #include "duckdb/parser/parsed_data/create_pragma_function_info.hpp" |
---|---|
2 | |
3 | namespace duckdb { |
4 | |
5 | CreatePragmaFunctionInfo::CreatePragmaFunctionInfo(PragmaFunction function) |
6 | : CreateFunctionInfo(CatalogType::PRAGMA_FUNCTION_ENTRY), functions(function.name) { |
7 | name = function.name; |
8 | functions.AddFunction(function: std::move(function)); |
9 | internal = true; |
10 | } |
11 | CreatePragmaFunctionInfo::CreatePragmaFunctionInfo(string name, PragmaFunctionSet functions_p) |
12 | : CreateFunctionInfo(CatalogType::PRAGMA_FUNCTION_ENTRY), functions(std::move(functions_p)) { |
13 | this->name = std::move(name); |
14 | internal = true; |
15 | } |
16 | |
17 | unique_ptr<CreateInfo> CreatePragmaFunctionInfo::Copy() const { |
18 | auto result = make_uniq<CreatePragmaFunctionInfo>(args: functions.name, args: functions); |
19 | CopyProperties(other&: *result); |
20 | return std::move(result); |
21 | } |
22 | |
23 | } // namespace duckdb |
24 |