Files
poco/Data/SQLParser/src/sql/InsertStatement.h

27 lines
613 B
C++

#ifndef SQLPARSER_INSERT_STATEMENT_H
#define SQLPARSER_INSERT_STATEMENT_H
#include "SQLStatement.h"
#include "SelectStatement.h"
namespace hsql {
enum InsertType { kInsertValues, kInsertSelect };
// Represents SQL Insert statements.
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
struct SQLParser_API InsertStatement : SQLStatement {
InsertStatement(InsertType type);
~InsertStatement() override;
InsertType type;
char* schema;
char* tableName;
std::vector<char*>* columns;
std::vector<Expr*>* values;
SelectStatement* select;
};
} // namespace hsql
#endif