(&mut self, id: String)
| 101 | } |
| 102 | |
| 103 | pub async fn delete_document(&mut self, id: String) { |
| 104 | let object_id = Uuid::parse_str(&id) |
| 105 | .unwrap_or_else(|_| Uuid::new_v5(&Uuid::NAMESPACE_OID, id.as_bytes())) |
| 106 | .to_string(); |
| 107 | self |
| 108 | .db |
| 109 | .with_write_txn(|store| store.delete_doc(self.uid, &self.workspace_id, &object_id)) |
| 110 | .unwrap(); |
| 111 | } |
| 112 | |
| 113 | pub async fn insert_key_value(&mut self, id: String, key: String, value: Any) { |
| 114 | self.insert(&id, key, value).await; |
no test coverage detected