1#include "duckdb/parser/parsed_data/create_copy_function_info.hpp"
2
3namespace duckdb {
4
5CreateCopyFunctionInfo::CreateCopyFunctionInfo(CopyFunction function_p)
6 : CreateInfo(CatalogType::COPY_FUNCTION_ENTRY), function(std::move(function_p)) {
7 this->name = function.name;
8 internal = true;
9}
10
11void CreateCopyFunctionInfo::SerializeInternal(Serializer &) const {
12 throw NotImplementedException("Cannot serialize '%s'", CatalogTypeToString(type));
13}
14
15unique_ptr<CreateInfo> CreateCopyFunctionInfo::Copy() const {
16 auto result = make_uniq<CreateCopyFunctionInfo>(args: function);
17 CopyProperties(other&: *result);
18 return std::move(result);
19}
20
21} // namespace duckdb
22