MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / delete_document

Method delete_document

collab/tests/plugins/disk/script.rs:103–111  ·  view source on GitHub ↗
(&mut self, id: String)

Source from the content-addressed store, hash-verified

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;

Callers 2

delete_single_doc_testFunction · 0.80

Calls 3

as_bytesMethod · 0.80
with_write_txnMethod · 0.80
delete_docMethod · 0.45

Tested by

no test coverage detected