Skip to main content

query_update_increments_version

Function query_update_increments_version 

Source
pub async fn query_update_increments_version(test: &mut Test) -> Result<()>
Expand description

A query-based update increments the version, just like an instance update. This is the single-key path (filter by primary key).

Unlike an instance update there is no per-row OCC guard — a query-based update is atomic at the database level — but the version still advances so concurrent stale writers are detected.