1 | #include "duckdb/parser/statement/set_statement.hpp" |
2 | |
3 | namespace duckdb { |
4 | |
5 | SetStatement::SetStatement(std::string name_p, SetScope scope_p, SetType type_p) |
6 | : SQLStatement(StatementType::SET_STATEMENT), name(std::move(name_p)), scope(scope_p), set_type(type_p) { |
7 | } |
8 | |
9 | unique_ptr<SQLStatement> SetStatement::Copy() const { |
10 | return unique_ptr<SetStatement>(new SetStatement(*this)); |
11 | } |
12 | |
13 | // Set Variable |
14 | |
15 | SetVariableStatement::SetVariableStatement(std::string name_p, Value value_p, SetScope scope_p) |
16 | : SetStatement(std::move(name_p), scope_p, SetType::SET), value(std::move(value_p)) { |
17 | } |
18 | |
19 | unique_ptr<SQLStatement> SetVariableStatement::Copy() const { |
20 | return unique_ptr<SetVariableStatement>(new SetVariableStatement(*this)); |
21 | } |
22 | |
23 | // Reset Variable |
24 | |
25 | ResetVariableStatement::ResetVariableStatement(std::string name_p, SetScope scope_p) |
26 | : SetStatement(std::move(name_p), scope_p, SetType::RESET) { |
27 | } |
28 | |
29 | } // namespace duckdb |
30 | |