2014-10-09 01:30:22 +02:00
|
|
|
#ifndef __SQLPARSER_H_
|
|
|
|
#define __SQLPARSER_H_
|
|
|
|
|
2016-02-27 14:24:23 +01:00
|
|
|
#include "SQLParserResult.h"
|
|
|
|
#include "sql/statements.h"
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2014-10-31 18:36:02 +01:00
|
|
|
namespace hsql {
|
2016-02-27 14:24:23 +01:00
|
|
|
/**
|
|
|
|
* Main class for parsing SQL strings
|
|
|
|
*/
|
|
|
|
class SQLParser {
|
|
|
|
public:
|
|
|
|
static SQLParserResult* parseSQLString(const char* sql);
|
|
|
|
static SQLParserResult* parseSQLString(const std::string& sql);
|
|
|
|
|
|
|
|
private:
|
|
|
|
SQLParser();
|
|
|
|
};
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2014-10-31 18:36:02 +01:00
|
|
|
|
|
|
|
} // namespace hsql
|
2014-10-09 01:30:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|