MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / document_delete_impl

Method document_delete_impl

nodedb-client/src/native/client/document.rs:73–89  ·  view source on GitHub ↗
(
        &self,
        collection: &str,
        id: &str,
    )

Source from the content-addressed store, hash-verified

71 }
72
73 pub(super) async fn document_delete_impl(
74 &self,
75 collection: &str,
76 id: &str,
77 ) -> NodeDbResult<()> {
78 let mut conn = self.pool.acquire().await?;
79 conn.send(
80 OpCode::PointDelete,
81 TextFields {
82 collection: Some(collection.to_string()),
83 document_id: Some(id.to_string()),
84 ..Default::default()
85 },
86 )
87 .await?;
88 Ok(())
89 }
90}

Callers 1

document_deleteMethod · 0.45

Calls 3

to_stringMethod · 0.80
acquireMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected