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

Function match_remove_statement

graphlite/src/ast/parser.rs:4013–4030  ·  view source on GitHub ↗

Parse MATCH REMOVE statement: MATCH pattern... [WITH ...] [WHERE condition] REMOVE item, item

(tokens: &[Token])

Source from the content-addressed store, hash-verified

4011
4012/// Parse MATCH REMOVE statement: MATCH pattern... [WITH ...] [WHERE condition] REMOVE item, item
4013fn match_remove_statement(tokens: &[Token]) -> IResult<&[Token], MatchRemoveStatement> {
4014 map(
4015 tuple((
4016 match_clause,
4017 opt(with_clause),
4018 opt(where_clause),
4019 expect_token(Token::Remove),
4020 separated_list1(expect_token(Token::Comma), remove_item),
4021 )),
4022 |(match_clause, with_clause_opt, where_clause_opt, _, items)| MatchRemoveStatement {
4023 match_clause,
4024 with_clause: with_clause_opt,
4025 where_clause: where_clause_opt,
4026 items,
4027 location: Location::default(),
4028 },
4029 )(tokens)
4030}
4031
4032/// Parse MATCH DELETE statement: MATCH pattern... [WITH ...] [WHERE condition] [DETACH] DELETE expression, expression
4033fn match_delete_statement(tokens: &[Token]) -> IResult<&[Token], MatchDeleteStatement> {

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected