2014-10-09 01:30:22 +02:00
|
|
|
#ifndef __SQLPARSER_H_
|
|
|
|
#define __SQLPARSER_H_
|
|
|
|
|
2015-12-23 16:01:08 +01:00
|
|
|
#include "sqltypes.h"
|
2014-10-09 01:30:22 +02:00
|
|
|
|
2014-10-31 18:36:02 +01:00
|
|
|
namespace hsql {
|
|
|
|
|
2014-12-15 18:32:46 +01:00
|
|
|
/*!
|
|
|
|
* \mainpage SQLParser (C++)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* @brief Main class for parsing SQL strings
|
|
|
|
*/
|
2014-10-09 01:30:22 +02:00
|
|
|
class SQLParser {
|
|
|
|
public:
|
2014-12-03 17:43:02 +01:00
|
|
|
static SQLStatementList* parseSQLString(const char* sql);
|
2015-01-07 13:24:39 +01:00
|
|
|
static SQLStatementList* parseSQLString(const std::string& sql);
|
2014-10-09 01:30:22 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
SQLParser();
|
|
|
|
};
|
|
|
|
|
2014-10-31 18:36:02 +01:00
|
|
|
|
|
|
|
} // namespace hsql
|
2014-10-09 01:30:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|