Parse INSERT statement: INSERT graph_pattern
(tokens: &[Token])
| 4063 | |
| 4064 | /// Parse INSERT statement: INSERT graph_pattern |
| 4065 | fn insert_statement(tokens: &[Token]) -> IResult<&[Token], InsertStatement> { |
| 4066 | map( |
| 4067 | tuple(( |
| 4068 | alt((expect_token(Token::Insert), expect_token(Token::Create))), |
| 4069 | separated_list1(expect_token(Token::Comma), graph_pattern), |
| 4070 | )), |
| 4071 | |(_, graph_patterns)| InsertStatement { |
| 4072 | graph_patterns, |
| 4073 | location: Location::default(), |
| 4074 | }, |
| 4075 | )(tokens) |
| 4076 | } |
| 4077 | |
| 4078 | /// Parse graph pattern - a single node or path pattern for INSERT |
| 4079 | fn graph_pattern(tokens: &[Token]) -> IResult<&[Token], PathPattern> { |
nothing calls this directly
no test coverage detected