Creates a concurrent insert conflict.
(entity1: ConflictEntity, entity2: ConflictEntity)
| 266 | |
| 267 | /// Creates a concurrent insert conflict. |
| 268 | pub fn concurrent_insert(entity1: ConflictEntity, entity2: ConflictEntity) -> Self { |
| 269 | Self { |
| 270 | kind: ConflictKind::ConcurrentInsert, |
| 271 | description: format!("Concurrent insertions: {} and {}", entity1, entity2), |
| 272 | entity: entity1, |
| 273 | other_entity: entity2, |
| 274 | resolved: false, |
| 275 | resolution: None, |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | /// Creates a delete/modify conflict. |
| 280 | pub fn delete_modify(deleted: ConflictEntity, modified: ConflictEntity) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected