1 | //===----------------------------------------------------------------------===// |
---|---|
2 | // DuckDB |
3 | // |
4 | // duckdb/parser/statement/extension_statement.hpp |
5 | // |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #pragma once |
10 | |
11 | #include "duckdb/parser/sql_statement.hpp" |
12 | #include "duckdb/parser/parser_extension.hpp" |
13 | |
14 | namespace duckdb { |
15 | |
16 | class ExtensionStatement : public SQLStatement { |
17 | public: |
18 | static constexpr const StatementType TYPE = StatementType::EXTENSION_STATEMENT; |
19 | |
20 | public: |
21 | ExtensionStatement(ParserExtension extension, unique_ptr<ParserExtensionParseData> parse_data); |
22 | |
23 | //! The ParserExtension this statement was generated from |
24 | ParserExtension extension; |
25 | //! The parse data for this specific statement |
26 | unique_ptr<ParserExtensionParseData> parse_data; |
27 | |
28 | public: |
29 | unique_ptr<SQLStatement> Copy() const override; |
30 | }; |
31 | |
32 | } // namespace duckdb |
33 |