(
&self,
collection: &str,
edge_id: &EdgeId,
)
| 128 | } |
| 129 | |
| 130 | pub(super) async fn graph_delete_edge_impl( |
| 131 | &self, |
| 132 | collection: &str, |
| 133 | edge_id: &EdgeId, |
| 134 | ) -> NodeDbResult<()> { |
| 135 | // `GRAPH DELETE EDGE IN '<collection>' FROM '<src>' TO '<dst>' |
| 136 | // TYPE '<label>'`. The (src, dst, label) tuple identifies a |
| 137 | // unique edge in the overlay — `seq` is part of `EdgeId` for |
| 138 | // multi-edge disambiguation, but the server DSL keys on the |
| 139 | // tuple alone today, so we drop seq here. |
| 140 | let coll = quote_string_literal(collection); |
| 141 | let src = quote_string_literal(edge_id.src.as_str()); |
| 142 | let dst = quote_string_literal(edge_id.dst.as_str()); |
| 143 | let label = quote_string_literal(&edge_id.label); |
| 144 | let sql = format!("GRAPH DELETE EDGE IN {coll} FROM {src} TO {dst} TYPE {label}"); |
| 145 | self.simple_query_raw(&sql).await?; |
| 146 | Ok(()) |
| 147 | } |
| 148 | |
| 149 | pub(super) async fn graph_stats_impl( |
| 150 | &self, |
no test coverage detected