HyriseSQLParser/src/lib/InsertStatement.h

36 lines
559 B
C
Raw Normal View History

2014-11-26 00:26:20 +01:00
#ifndef __INSERT_STATEMENT_H__
#define __INSERT_STATEMENT_H__
#include "Statement.h"
#include "SelectStatement.h"
namespace hsql {
struct InsertStatement : Statement {
typedef enum {
kInsertValues,
kInsertSelect
} Type;
InsertStatement() :
Statement(kStmtInsert),
table_name(NULL),
columns(NULL),
values(NULL),
select(NULL) {}
virtual ~InsertStatement(); // defined in destructors.cpp
Type insert_type;
const char* table_name;
List<char*>* columns;
List<Expr*>* values;
SelectStatement* select;
};
} // namsepace hsql
#endif