commit
33c00133f2
|
@ -30,7 +30,7 @@ namespace hsql {
|
|||
// Example: "CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)"
|
||||
struct CreateStatement : SQLStatement {
|
||||
CreateStatement(CreateType type);
|
||||
virtual ~CreateStatement();
|
||||
~CreateStatement() override;
|
||||
|
||||
CreateType type;
|
||||
bool ifNotExists; // default: false
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace hsql {
|
|||
// Note: if (expr == nullptr) => delete all rows (truncate)
|
||||
struct DeleteStatement : SQLStatement {
|
||||
DeleteStatement();
|
||||
virtual ~DeleteStatement();
|
||||
~DeleteStatement() override;
|
||||
|
||||
char* schema;
|
||||
char* tableName;
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace hsql {
|
|||
struct DropStatement : SQLStatement {
|
||||
|
||||
DropStatement(DropType type);
|
||||
virtual ~DropStatement();
|
||||
~DropStatement() override;
|
||||
|
||||
DropType type;
|
||||
bool ifExists;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace hsql {
|
|||
// Example: "EXECUTE ins_prep(100, "test", 2.3);"
|
||||
struct ExecuteStatement : SQLStatement {
|
||||
ExecuteStatement();
|
||||
virtual ~ExecuteStatement();
|
||||
~ExecuteStatement() override;
|
||||
|
||||
char* name;
|
||||
std::vector<Expr*>* parameters;
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace hsql {
|
|||
// Represents SQL Export statements.
|
||||
struct ExportStatement : SQLStatement {
|
||||
ExportStatement(ImportType type);
|
||||
virtual ~ExportStatement();
|
||||
~ExportStatement() override;
|
||||
|
||||
// ImportType is used for compatibility reasons
|
||||
ImportType type;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
|||
// Represents SQL Import statements.
|
||||
struct ImportStatement : SQLStatement {
|
||||
ImportStatement(ImportType type);
|
||||
virtual ~ImportStatement();
|
||||
~ImportStatement() override;
|
||||
|
||||
ImportType type;
|
||||
char* filePath;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
|||
// Example: "INSERT INTO students VALUES ('Max', 1112233, 'Musterhausen', 2.3)"
|
||||
struct InsertStatement : SQLStatement {
|
||||
InsertStatement(InsertType type);
|
||||
virtual ~InsertStatement();
|
||||
~InsertStatement() override;
|
||||
|
||||
InsertType type;
|
||||
char* schema;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace hsql {
|
|||
// Example: PREPARE test FROM 'SELECT * FROM test WHERE a = ?;'
|
||||
struct PrepareStatement : SQLStatement {
|
||||
PrepareStatement();
|
||||
virtual ~PrepareStatement();
|
||||
~PrepareStatement() override;
|
||||
|
||||
char* name;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace hsql {
|
|||
// Representation of a full SQL select statement.
|
||||
struct SelectStatement : SQLStatement {
|
||||
SelectStatement();
|
||||
virtual ~SelectStatement();
|
||||
~SelectStatement() override;
|
||||
|
||||
TableRef* fromTable;
|
||||
bool selectDistinct;
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace hsql {
|
|||
struct ShowStatement : SQLStatement {
|
||||
|
||||
ShowStatement(ShowType type);
|
||||
virtual ~ShowStatement();
|
||||
~ShowStatement() override;
|
||||
|
||||
ShowType type;
|
||||
char* schema;
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace hsql {
|
|||
|
||||
struct TransactionStatement : SQLStatement {
|
||||
TransactionStatement(TransactionCommand command);
|
||||
virtual ~TransactionStatement();
|
||||
~TransactionStatement() override;
|
||||
|
||||
TransactionCommand command;
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace hsql {
|
|||
// Represents SQL Update statements.
|
||||
struct UpdateStatement : SQLStatement {
|
||||
UpdateStatement();
|
||||
virtual ~UpdateStatement();
|
||||
~UpdateStatement() override;
|
||||
|
||||
// TODO: switch to char* instead of TableRef
|
||||
TableRef* table;
|
||||
|
|
Loading…
Reference in New Issue