(&self, collection: &str, id: &str)
| 60 | } |
| 61 | |
| 62 | pub(super) async fn vector_delete_impl(&self, collection: &str, id: &str) -> NodeDbResult<()> { |
| 63 | let sql = format!( |
| 64 | "DELETE FROM {} WHERE id = {}", |
| 65 | quote_identifier(collection), |
| 66 | quote_string_literal(id), |
| 67 | ); |
| 68 | let mut conn = self.pool.acquire().await?; |
| 69 | conn.execute_sql(&sql).await?; |
| 70 | Ok(()) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /// Build the `TextFields` payload for an `OpCode::VectorSearch` request. |
no test coverage detected