Skip to content

Commit

Permalink
add links to transactions page
Browse files Browse the repository at this point in the history
  • Loading branch information
googley42 committed Aug 4, 2024
1 parent 76de80c commit 159be33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ For more detailed working examples please see the High Level API integration tes
| [BatchGetItem](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchGetItem.html) | `people <- DynamoDBQuery.forEach(listOfIds)(id => DynamoDBQuery.get[Person]("personTable")(Person.id.partitionKey === id)).execute`|
| [BatchWriteItem](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html) | _ <- `DynamoDBQuery.forEach(people)(p => put("personTable", p)).execute` |
| | |
| [TransactGetItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html) | `val getJohn = get("personTable")(Person.id.partitionKey === "1")`<br>`val getSmith = get("employeeTable")(Employee.id.partitionKey === "2")`<br>`tuple <- (getJohn zip getSmith).transaction.execute` <br> Note transactions can span different tables |
| [TransactWriteItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html) | `val putJohn = put("personTable", Person(1, "John", 2020))`<br>`val putSmith = put("employeeTable", Person(2, "Smith", 2024))`<br>`_ <- (putJohn zip putSmith).transaction.execute` <br> Note transactions can span different tables |
| [TransactGetItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactGetItems.html) | `val getJohn = get("personTable")(Person.id.partitionKey === "1")`<br>`val getSmith = get("employeeTable")(Employee.id.partitionKey === "2")`<br>`tuple <- (getJohn zip getSmith).transaction.execute` <br> Note transactions can span different tables. Also see the transactions [page](transactions.md). |
| [TransactWriteItems](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_TransactWriteItems.html) | `val putJohn = put("personTable", Person(1, "John", 2020))`<br>`val putSmith = put("employeeTable", Person(2, "Smith", 2024))`<br>`_ <- (putJohn zip putSmith).transaction.execute` <br> Note transactions can span different tables. Also see the transactions [page](transactions.md). |

0 comments on commit 159be33

Please sign in to comment.