HyriseSQLParser/src/sql/DropStatement.h

42 lines
670 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
2016-02-27 15:01:06 +01:00
/**
* @struct DropStatement
* @brief Represents "DROP TABLE"
*/
struct DropStatement : SQLStatement {
enum EntityType {
kTable,
kSchema,
kIndex,
kView,
kPreparedStatement
};
DropStatement(EntityType type) :
SQLStatement(kStmtDrop),
type(type),
name(NULL) {}
virtual ~DropStatement() {
delete name;
}
EntityType type;
const char* name;
};
2014-12-03 16:53:49 +01:00
} // namespace hsql
#endif