HyriseSQLParser/src/sql/ImportStatement.h

35 lines
712 B
C
Raw Normal View History

2014-11-07 01:09:06 +01:00
#ifndef __IMPORT_STATEMENT_H__
#define __IMPORT_STATEMENT_H__
2014-12-03 17:43:02 +01:00
#include "SQLStatement.h"
2014-11-07 01:09:06 +01:00
namespace hsql {
2016-02-27 15:01:06 +01:00
/**
2016-02-27 15:22:22 +01:00
* Represents SQL Import statements.
2016-02-27 15:01:06 +01:00
*/
struct ImportStatement : SQLStatement {
enum ImportType {
kImportCSV,
kImportTbl, // Hyrise file format
};
ImportStatement(ImportType type) :
SQLStatement(kStmtImport),
type(type),
2016-02-27 15:22:22 +01:00
filePath(NULL),
tableName(NULL) {};
2016-02-27 15:01:06 +01:00
virtual ~ImportStatement() {
2016-02-27 15:22:22 +01:00
delete filePath;
delete tableName;
2016-02-27 15:01:06 +01:00
}
ImportType type;
2016-02-27 15:22:22 +01:00
const char* filePath;
const char* tableName;
2016-02-27 15:01:06 +01:00
};
2014-11-07 01:09:06 +01:00
} // namespace hsql
#endif