Skip to content

Commit

Permalink
Rename method to Serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Dec 5, 2023
1 parent 9c900fd commit 253edce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/include/duckdb/parser/property_graph_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,5 @@ class PropertyGraphTable {

static shared_ptr<PropertyGraphTable> Deserialize(Deserializer &deserializer);

void WritePropertyGraphTableEntry(Serializer &serializer);
};
} // namespace duckdb
4 changes: 2 additions & 2 deletions src/parser/parsed_data/create_property_graph_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ void CreatePropertyGraphInfo::Serialize(Serializer &serializer) const {
serializer.WriteProperty<string>(100, "property_graph_name", property_graph_name);
serializer.WriteList(101, "vertex_tables", vertex_tables.size(), [&](Serializer::List &list, idx_t i) {
auto &entry = vertex_tables[i];
list.WriteObject([&](Serializer &obj) { entry->WritePropertyGraphTableEntry(obj);
list.WriteObject([&](Serializer &obj) { entry->Serialize(obj);
});
});
serializer.WriteList(102, "edge_tables", edge_tables.size(), [&](Serializer::List &list, idx_t i) {
auto &entry = edge_tables[i];
list.WriteObject([&](Serializer &obj) { entry->WritePropertyGraphTableEntry(obj); });
list.WriteObject([&](Serializer &obj) { entry->Serialize(obj); });
});
serializer.WriteProperty(103, "label_map", label_map);
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/property_graph_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ bool PropertyGraphTable::Equals(const PropertyGraphTable *other_p) const {
return true;
}

void PropertyGraphTable::WritePropertyGraphTableEntry(Serializer &serializer) {
void PropertyGraphTable::Serialize(Serializer &serializer) const {
serializer.WriteProperty(100, "table_name", table_name);
serializer.WriteProperty(101, "column_names", column_names);
serializer.WriteProperty(102, "column_aliases", column_aliases);
Expand Down

0 comments on commit 253edce

Please sign in to comment.