You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed preconditions (or `TransactWrite.Check`s) are signalled as per the underlying API: via a `TransactionCanceledException`.
282
-
Use `TransactWriteItemsRequest.TransactionCanceledConditionalCheckFailed` to trap such conditions:
282
+
Failed preconditions (or `Check`s) are signalled as per the underlying API: via a `TransactionCanceledException`.
283
+
Use `Transaction.TransactionCanceledConditionalCheckFailed` to trap such conditions:
283
284
284
285
```fsharp
285
286
try do! transaction.TransactWriteItems()
286
287
return Some result
287
-
with TransactWriteItemsRequest.TransactionCanceledConditionalCheckFailed -> return None
288
+
with Transaction.TransactionCanceledConditionalCheckFailed -> return None
288
289
```
289
290
290
-
See [`TransactWriteItems tests`](./tests/FSharp.AWS.DynamoDB.Tests/SimpleTableOperationTests.fs#130) for more details and examples.
291
+
See [`TransactWriteItems tests`](./tests/FSharp.AWS.DynamoDB.Tests/SimpleTableOperationTests.fs#156) for more details and examples.
291
292
292
293
It generally costs [double or more the Write Capacity Units charges compared to using precondition expressions](https://zaccharles.medium.com/calculating-a-dynamodb-items-size-and-consumed-capacity-d1728942eb7c)
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
### 0.12.2-beta
2
+
* (breaking) Revised multi-table transaction API (thanks @bartelink)
3
+
1
4
### 0.12.1-beta
2
5
* Added support for `defaultArg` in update expressions on the same attribute, allowing SET if_not_exists semantics (eg { record with OptionalValue = Some (defaultArg record.OptionalValue "Default") })
3
6
* Allow empty strings in non-key attributes (thanks @purkhusid)
0 commit comments