Functions§
- batch_
insert_ checks_ version - Batch-creating multiple versioned items should initialize all versions to 1, and a duplicate within the batch should fail.
- create_
initializes_ version - A newly created record starts with version == 1.
- delete_
checks_ version - Deleting a record checks the version — a fresh handle succeeds.
- duplicate_
create_ fails - Creating the same primary key twice should fail because of the attribute_not_exists condition on the version column.
- query_
update_ multi_ key_ works - Query-based update on a versioned model: exercises update_by_key path 2 (no unique index, N keys via transact_write_items on DDB).
- stale_
delete_ fails - Deleting from a stale snapshot (wrong version) should fail.
- stale_
update_ fails - Two updates from the same stale snapshot — the second should fail with a condition-check error because the DB version has already moved to 2.
- unique_
index_ stale_ update_ fails - Stale update on a model with a unique index: the second update from a stale snapshot should fail.
- unique_
index_ update_ increments_ version - Updating a record through the unique-index path (path 3) increments the version when the unique column changes.
- update_
increments_ version - Updating a record increments the version.