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

Function query_segment_no_unwind

graphlite/src/ast/parser.rs:720–732  ·  view source on GitHub ↗

Parse a query segment without UNWIND: MATCH [WHERE] WITH

(tokens: &[Token])

Source from the content-addressed store, hash-verified

718
719/// Parse a query segment without UNWIND: MATCH [WHERE] WITH
720fn query_segment_no_unwind(tokens: &[Token]) -> IResult<&[Token], QuerySegment> {
721 map(
722 tuple((match_clause, opt(where_clause), opt(with_clause))),
723 |(match_clause, where_clause, with_clause)| QuerySegment {
724 match_clause,
725 where_clause,
726 with_clause,
727 unwind_clause: None,
728 post_unwind_where: None,
729 location: Location::default(),
730 },
731 )(tokens)
732}
733
734/// Parse WITH query: MATCH ... WITH ... [MATCH ... WITH ...] RETURN ...
735fn with_query(tokens: &[Token]) -> IResult<&[Token], Query> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected