2014-11-07 01:09:06 +01:00
|
|
|
#ifndef __IMPORT_STATEMENT_H__
|
|
|
|
#define __IMPORT_STATEMENT_H__
|
|
|
|
|
|
|
|
#include "Statement.h"
|
|
|
|
|
|
|
|
namespace hsql {
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
kImportCSV,
|
|
|
|
kImportTbl, // Hyrise file format
|
|
|
|
// HANA supports a second file type CONTROL FILE
|
|
|
|
// we don't need that so far, but we leave the option
|
|
|
|
// to expand it here
|
|
|
|
} ImportFileType;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @struct ImportStatement
|
|
|
|
*/
|
|
|
|
struct ImportStatement : Statement {
|
2014-11-07 02:00:09 +01:00
|
|
|
ImportStatement() : Statement(kStmtImport) {};
|
2014-11-07 15:21:54 +01:00
|
|
|
virtual ~ImportStatement(); // defined in destructors.cpp
|
2014-11-07 01:09:06 +01:00
|
|
|
|
|
|
|
ImportFileType file_type;
|
|
|
|
const char* file_path;
|
|
|
|
const char* table_name;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace hsql
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|