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