1 | #include "duckdb/execution/operator/schema/physical_create_sequence.hpp" |
---|---|
2 | #include "duckdb/catalog/catalog.hpp" |
3 | |
4 | namespace duckdb { |
5 | |
6 | //===--------------------------------------------------------------------===// |
7 | // Source |
8 | //===--------------------------------------------------------------------===// |
9 | SourceResultType PhysicalCreateSequence::GetData(ExecutionContext &context, DataChunk &chunk, |
10 | OperatorSourceInput &input) const { |
11 | auto &catalog = Catalog::GetCatalog(context&: context.client, catalog_name: info->catalog); |
12 | catalog.CreateSequence(context&: context.client, info&: *info); |
13 | |
14 | return SourceResultType::FINISHED; |
15 | } |
16 | |
17 | } // namespace duckdb |
18 |