HyriseSQLParser/src/sql/ImportStatement.h

44 lines
592 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 {
/**
* @struct ImportStatement
2014-12-15 18:32:46 +01:00
* @brief Represents "IMPORT"
2014-11-07 01:09:06 +01:00
*/
2014-12-03 17:43:02 +01:00
struct ImportStatement : SQLStatement {
enum ImportType {
kImportCSV,
kImportTbl, // Hyrise file format
};
ImportStatement(ImportType type) :
SQLStatement(kStmtImport),
type(type),
2014-11-13 01:27:47 +01:00
file_path(NULL),
table_name(NULL) {};
2014-12-15 18:32:46 +01:00
virtual ~ImportStatement() {
delete file_path;
delete table_name;
}
2014-11-07 01:09:06 +01:00
2014-12-03 17:43:02 +01:00
ImportType type;
2014-11-07 01:09:06 +01:00
const char* file_path;
const char* table_name;
};
} // namespace hsql
#endif