1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/common/enums/statement_type.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/common/constants.hpp"
12
13namespace duckdb {
14
15//===--------------------------------------------------------------------===//
16// Statement Types
17//===--------------------------------------------------------------------===//
18enum class StatementType : uint8_t {
19 INVALID_STATEMENT, // invalid statement type
20 SELECT_STATEMENT, // select statement type
21 INSERT_STATEMENT, // insert statement type
22 UPDATE_STATEMENT, // update statement type
23 CREATE_STATEMENT, // create statement type
24 DELETE_STATEMENT, // delete statement type
25 PREPARE_STATEMENT, // prepare statement type
26 EXECUTE_STATEMENT, // execute statement type
27 ALTER_STATEMENT, // alter statement type
28 TRANSACTION_STATEMENT, // transaction statement type,
29 COPY_STATEMENT, // copy type
30 ANALYZE_STATEMENT, // analyze type
31 VARIABLE_SET_STATEMENT, // variable set statement type
32 CREATE_FUNC_STATEMENT, // create func statement type
33 EXPLAIN_STATEMENT, // explain statement type
34 DROP_STATEMENT, // DROP statement type
35 PRAGMA_STATEMENT, // PRAGMA statement type
36 VACUUM_STATEMENT, // VACUUM statement type
37 RELATION_STATEMENT
38};
39
40string StatementTypeToString(StatementType type);
41
42} // namespace duckdb
43