| 1 | #include "duckdb/common/field_writer.hpp" |
|---|---|
| 2 | #include "duckdb/planner/operator/logical_reset.hpp" |
| 3 | |
| 4 | namespace duckdb { |
| 5 | |
| 6 | void LogicalReset::Serialize(FieldWriter &writer) const { |
| 7 | writer.WriteString(val: name); |
| 8 | writer.WriteField(element: scope); |
| 9 | } |
| 10 | |
| 11 | unique_ptr<LogicalOperator> LogicalReset::Deserialize(LogicalDeserializationState &state, FieldReader &reader) { |
| 12 | auto name = reader.ReadRequired<std::string>(); |
| 13 | auto scope = reader.ReadRequired<SetScope>(); |
| 14 | return make_uniq<LogicalReset>(args&: name, args&: scope); |
| 15 | } |
| 16 | |
| 17 | idx_t LogicalReset::EstimateCardinality(ClientContext &context) { |
| 18 | return 1; |
| 19 | } |
| 20 | |
| 21 | } // namespace duckdb |
| 22 |