HyriseSQLParser/src/lib/statements/DeleteStatement.h
2014-12-03 17:43:02 +01:00

31 lines
536 B
C++

#ifndef __DELETE_STATEMENT_H__
#define __DELETE_STATEMENT_H__
#include "SQLStatement.h"
namespace hsql {
/**
* @struct DeleteStatement
* DELETE FROM students WHERE grade > 3.0
* DELETE FROM students <=> TRUNCATE students
*
* If expr == NULL => delete all rows (truncate)
*/
struct DeleteStatement : SQLStatement {
DeleteStatement() :
SQLStatement(kStmtDelete),
table_name(NULL),
expr(NULL) {};
virtual ~DeleteStatement(); // defined in destructors.cpp
char* table_name;
Expr* expr;
};
} // namespace hsql
#endif