(toks: &[Tok<'_>])
| 11 | }; |
| 12 | |
| 13 | pub(super) fn parse_insert_edge(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 14 | let collection = quoted_after(toks, "IN")?; |
| 15 | let src = quoted_after(toks, "FROM")?; |
| 16 | let dst = quoted_after(toks, "TO")?; |
| 17 | let label = quoted_after(toks, "TYPE")?; |
| 18 | let properties = extract_properties(toks); |
| 19 | Some(NodedbStatement::Graph(GraphStmt::GraphInsertEdge { |
| 20 | collection, |
| 21 | src, |
| 22 | dst, |
| 23 | label, |
| 24 | properties, |
| 25 | })) |
| 26 | } |
| 27 | |
| 28 | pub(super) fn parse_delete_edge(toks: &[Tok<'_>]) -> Option<NodedbStatement> { |
| 29 | let collection = quoted_after(toks, "IN")?; |
no test coverage detected