Skip to main content

get_by_id_for_update

Function get_by_id_for_update 

Source
pub async fn get_by_id_for_update(
    conn: &mut PgConnection,
    id: Uuid,
) -> ModelResult<AgentChangeset>
Expand description

Like get_by_id, locking the row until the transaction ends so that publishing, discarding and staging of one changeset never interleave.