Skip to main content

duplicate_create_fails

Function duplicate_create_fails 

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

Creating the same primary key twice should fail. On DynamoDB the insert carries an attribute_not_exists condition on the version column; on SQL backends the primary-key constraint rejects the duplicate.