HyriseSQLParser/src/sql/UpdateStatement.h
2020-10-19 15:07:45 +02:00

28 lines
531 B
C++

#ifndef SQLPARSER_UPDATE_STATEMENT_H
#define SQLPARSER_UPDATE_STATEMENT_H
#include "SQLStatement.h"
namespace hsql {
// Represents "column = value" expressions.
struct UpdateClause {
char* column;
Expr* value;
};
// Represents SQL Update statements.
struct UpdateStatement : SQLStatement {
UpdateStatement();
~UpdateStatement() override;
// TODO: switch to char* instead of TableRef
TableRef* table;
std::vector<UpdateClause*>* updates;
Expr* where;
};
} // namsepace hsql
#endif