1#include "duckdb/parser/common_table_expression_info.hpp"
2#include "duckdb/common/serializer/format_serializer.hpp"
3#include "duckdb/common/serializer/format_deserializer.hpp"
4
5namespace duckdb {
6
7void CommonTableExpressionInfo::FormatSerialize(FormatSerializer &serializer) const {
8 serializer.WriteProperty(tag: "aliases", value: aliases);
9 serializer.WriteProperty(tag: "query", value: query);
10}
11
12unique_ptr<CommonTableExpressionInfo> CommonTableExpressionInfo::FormatDeserialize(FormatDeserializer &deserializer) {
13 auto result = make_uniq<CommonTableExpressionInfo>();
14 result->aliases = deserializer.ReadProperty<vector<string>>(tag: "aliases");
15 result->query = deserializer.ReadProperty<unique_ptr<SelectStatement>>(tag: "query");
16 return result;
17}
18
19} // namespace duckdb
20