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

Method document_delete_impl

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

Source from the content-addressed store, hash-verified

75 }
76
77 pub(super) async fn document_delete_impl(
78 &self,
79 collection: &str,
80 id: &str,
81 ) -> NodeDbResult<()> {
82 let collection = quote_identifier(collection);
83 let sql = format!("DELETE FROM {collection} WHERE id = $1");
84 self.execute_raw(&sql, &[&id]).await?;
85 Ok(())
86 }
87}

Callers 1

document_deleteMethod · 0.45

Calls 2

quote_identifierFunction · 0.85
execute_rawMethod · 0.80

Tested by

no test coverage detected