HyriseSQLParser/src/sql/DropStatement.h

42 lines
507 B
C
Raw Normal View History

2014-12-03 16:53:49 +01:00
#ifndef __DROP_STATEMENT_H__
#define __DROP_STATEMENT_H__
2014-12-03 17:43:02 +01:00
#include "SQLStatement.h"
2014-12-03 16:53:49 +01:00
namespace hsql {
2014-12-15 18:32:46 +01:00
/**
* @struct DropStatement
* @brief Represents "DROP TABLE"
*/
2014-12-03 17:43:02 +01:00
struct DropStatement : SQLStatement {
enum EntityType {
2014-12-03 16:53:49 +01:00
kTable,
kSchema,
kIndex,
2015-01-07 13:42:11 +01:00
kView,
kPreparedStatement
2014-12-03 16:53:49 +01:00
};
2014-12-03 17:43:02 +01:00
DropStatement(EntityType type) :
SQLStatement(kStmtDrop),
type(type),
2014-12-03 16:53:49 +01:00
name(NULL) {}
virtual ~DropStatement() {
delete name;
}
2014-12-15 18:32:46 +01:00
EntityType type;
const char* name;
2014-12-03 16:53:49 +01:00
};
} // namespace hsql
#endif