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

Method vector_delete_impl

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

Source from the content-addressed store, hash-verified

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.

Callers 1

vector_deleteMethod · 0.45

Calls 2

acquireMethod · 0.45
execute_sqlMethod · 0.45

Tested by

no test coverage detected