27 lines
525 B
C++
27 lines
525 B
C++
#ifndef __SQLPARSER_H_
|
|
#define __SQLPARSER_H_
|
|
|
|
#include "SQLParserResult.h"
|
|
#include "sql/statements.h"
|
|
|
|
namespace hsql {
|
|
|
|
// Static methods used to parse SQL strings.
|
|
class SQLParser {
|
|
public:
|
|
// Parses a given constant character SQL string.
|
|
static SQLParserResult* parseSQLString(const char* sql);
|
|
|
|
// Parses an SQL std::string.
|
|
static SQLParserResult* parseSQLString(const std::string& sql);
|
|
|
|
private:
|
|
// Static class can't be instatiated.
|
|
SQLParser();
|
|
};
|
|
|
|
|
|
} // namespace hsql
|
|
|
|
|
|
#endif |