MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / query

Function query

graphlite/src/ast/parser.rs:352–354  ·  view source on GitHub ↗

Parse a complete query: MATCH [WHERE] RETURN [GROUP BY] [HAVING] [ORDER BY] [LIMIT] Parse query with set operations support ::= (("UNION" | "EXCEPT") ["ALL"] | "INTERSECT" ["ALL"] )

(tokens: &[Token])

Source from the content-addressed store, hash-verified

350/// Parse query with set operations support
351/// <query-statement> ::= <query-term> (("UNION" | "EXCEPT") ["ALL"] <query-term> | "INTERSECT" ["ALL"] <query-term>)*
352fn query(tokens: &[Token]) -> IResult<&[Token], Query> {
353 parse_set_operation(tokens)
354}
355
356/// Parse core query logic (set operations, basic queries) without modifiers
357/// This is the clean separation: core query parsing vs modifier parsing

Callers 2

parse_queryFunction · 0.85
describe_graph_typeMethod · 0.85

Calls 1

parse_set_operationFunction · 0.85

Tested by

no test coverage detected