mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
27 lines
613 B
C++
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
|