HyriseSQLParser/src/SQLParser.h

27 lines
525 B
C
Raw Normal View History

2014-10-09 01:30:22 +02:00
#ifndef __SQLPARSER_H_
#define __SQLPARSER_H_
#include "SQLParserResult.h"
#include "sql/statements.h"
2014-10-09 01:30:22 +02:00
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);
2016-02-27 15:01:06 +01:00
private:
// Static class can't be instatiated.
SQLParser();
};
2014-10-09 01:30:22 +02:00
} // namespace hsql
2014-10-09 01:30:22 +02:00
#endif