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
|
|
|
|
};
|
|
|
|
|
2017-02-03 16:50:18 +01:00
|
|
|
ImportStatement(ImportType type);
|
|
|
|
virtual ~ImportStatement();
|
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
|