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

Function return_query

graphlite/src/ast/parser.rs:616–636  ·  view source on GitHub ↗

Parse standalone RETURN query: RETURN [DISTINCT|ALL] items [GROUP BY] [HAVING] [ORDER BY] [LIMIT]

(tokens: &[Token])

Source from the content-addressed store, hash-verified

614
615/// Parse standalone RETURN query: RETURN [DISTINCT|ALL] items [GROUP BY] [HAVING] [ORDER BY] [LIMIT]
616fn return_query(tokens: &[Token]) -> IResult<&[Token], Query> {
617 map(
618 tuple((
619 return_clause,
620 opt(group_clause),
621 opt(having_clause),
622 opt(order_clause),
623 opt(limit_clause),
624 )),
625 |(return_clause, group_clause, having_clause, order_clause, limit_clause)| {
626 Query::Return(ReturnQuery {
627 return_clause,
628 group_clause,
629 having_clause,
630 order_clause,
631 limit_clause,
632 location: Location::default(),
633 })
634 },
635 )(tokens)
636}
637
638/// Parse final mutation action
639fn final_mutation(tokens: &[Token]) -> IResult<&[Token], FinalMutation> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected