MCPcopy Create free account
hub / github.com/Restream/reindexer / Parse

Method Parse

cpp_src/core/query/sql/sqlparser.cc:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20SQLParser::ErrorEOF::ErrorEOF() noexcept : Error(errLogic, "SQLParser eof is reached!") {}
21
22Query SQLParser::Parse(std::string_view q) {
23 Tokenizer parser(q);
24 Query query;
25 std::ignore = SQLParser{query}.Parse(parser);
26 return query;
27}
28
29bool SQLParser::reachedAutocompleteToken(Tokenizer& parser, const Token& tok) const {
30 const size_t pos = parser.GetPos() + tok.Text().length();

Callers 7

addUpdateValueFunction · 0.45
GetSuggestionsMethod · 0.45
ParseFunction · 0.45
MakeCSVTagOrderingMethod · 0.45
FromMsgPackMethod · 0.45
FromJSONMethod · 0.45
calculateMethod · 0.45

Calls 11

SqlParserErrorClass · 0.85
SkipSpaceMethod · 0.80
LengthMethod · 0.80
SkipTokenMethod · 0.80
emplace_backMethod · 0.45
ExplainMethod · 0.45
IsLocalMethod · 0.45
WhereMethod · 0.45
NextTokenMethod · 0.45
emptyMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected