| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/parser/sql_statement.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/common/common.hpp" |
| 12 | #include "duckdb/common/enums/statement_type.hpp" |
| 13 | #include "duckdb/common/exception.hpp" |
| 14 | #include "duckdb/common/printer.hpp" |
| 15 | |
| 16 | namespace duckdb { |
| 17 | //! SQLStatement is the base class of any type of SQL statement. |
| 18 | class SQLStatement { |
| 19 | public: |
| 20 | SQLStatement(StatementType type) : type(type){}; |
| 21 | virtual ~SQLStatement() { |
| 22 | } |
| 23 | |
| 24 | StatementType type; |
| 25 | idx_t stmt_location; |
| 26 | idx_t stmt_length; |
| 27 | }; |
| 28 | } // namespace duckdb |
| 29 |