(collection: &str, doc_id: &str)
| 155 | } |
| 156 | |
| 157 | pub 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). |
| 170 | pub fn doc_conflict(collection: &str, doc_id: &str) -> PhysicalPlan { |
no test coverage detected