1 | #include "duckdb/planner/parsed_data/bound_create_table_info.hpp" |
---|---|
2 | #include "duckdb/parser/parsed_data/create_schema_info.hpp" |
3 | #include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp" |
4 | #include "duckdb/common/field_writer.hpp" |
5 | |
6 | namespace duckdb { |
7 | void BoundCreateTableInfo::Serialize(Serializer &serializer) const { |
8 | serializer.WriteOptional(element: base); |
9 | } |
10 | |
11 | unique_ptr<BoundCreateTableInfo> BoundCreateTableInfo::Deserialize(Deserializer &source, |
12 | PlanDeserializationState &state) { |
13 | auto info = source.ReadOptional<CreateInfo>(); |
14 | auto schema_name = info->schema; |
15 | auto catalog = info->catalog; |
16 | auto binder = Binder::CreateBinder(context&: state.context); |
17 | auto bound_info = binder->BindCreateTableInfo(info: std::move(info)); |
18 | return bound_info; |
19 | } |
20 | } // namespace duckdb |
21 |