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