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

Function doc_get

nodedb-test-support/src/tx_batch_helpers.rs:157–167  ·  view source on GitHub ↗
(collection: &str, doc_id: &str)

Source from the content-addressed store, hash-verified

155}
156
157pub fn doc_get(collection: &str, doc_id: &str) -> PhysicalPlan {
158 PhysicalPlan::Document(DocumentOp::PointGet {
159 collection: collection.into(),
160 document_id: doc_id.into(),
161 rls_filters: Vec::new(),
162 system_as_of_ms: None,
163 valid_at_ms: None,
164 surrogate: nodedb_types::Surrogate::ZERO,
165 pk_bytes: Vec::new(),
166 })
167}
168
169/// Fails if doc_id already exists (if_absent=false but key present causes conflict).
170pub fn doc_conflict(collection: &str, doc_id: &str) -> PhysicalPlan {

Callers 1

assert_doc_absentFunction · 0.70

Calls 1

DocumentClass · 0.85

Tested by

no test coverage detected