HyriseSQLParser/src/lib/DropStatement.h

38 lines
418 B
C
Raw Normal View History

2014-12-03 16:53:49 +01:00
#ifndef __DROP_STATEMENT_H__
#define __DROP_STATEMENT_H__
#include "Statement.h"
namespace hsql {
struct DropStatement : Statement {
enum ObjectType {
kTable,
kSchema,
kIndex,
kView
};
DropStatement(ObjectType type) :
Statement(kStmtDrop),
obj_type(type),
name(NULL) {}
ObjectType obj_type;
const char* name;
virtual ~DropStatement() {
delete name;
}
};
} // namespace hsql
#endif