HyriseSQLParser/src/lib/statements/DropStatement.h

37 lines
418 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-03 17:43:02 +01:00
struct DropStatement : SQLStatement {
enum EntityType {
2014-12-03 16:53:49 +01:00
kTable,
kSchema,
kIndex,
kView
};
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) {}
2014-12-03 17:43:02 +01:00
EntityType type;
2014-12-03 16:53:49 +01:00
const char* name;
virtual ~DropStatement() {
delete name;
}
};
} // namespace hsql
#endif