Help › Explore a database
Change a DynamoDB item
Put a new item, edit an item's attributes or delete an item in a DynamoDB table, without overwriting what someone else changed meanwhile.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Items are changed from a table's items tab (see Browse a DynamoDB table's items), one item at a time. Every change is checked against what you saw: Querlyn never overwrites an item that changed after it was read.
Write an item
An item is written as DynamoDB itself writes it, the way the AWS console and command line show it: each attribute's name with a typed value.
| Type | Written | Example |
|---|---|---|
| String | S | {"S": "shipped"} |
| Number | N, in quotes | {"N": "129.90"} |
| Binary | B, as base64 | {"B": "AAEC"} |
| Boolean | BOOL | {"BOOL": true} |
| Null | NULL | {"NULL": true} |
| Map | M | {"M": {"city": {"S": "Hamburg"}}} |
| List | L | {"L": [{"S": "a"}, {"N": "1"}]} |
| String, number and binary sets | SS, NS, BS | {"SS": ["a", "b"]} |
A number is written in quotes so that every digit is kept. When the text is not an item, the dialog says what is wrong and where: which attribute, and what its type takes.
Put a new item
opens the dialog with the table's key attributes ready to fill in. Add the other attributes and choose Put Item.
The item is put only if no item has its key. When one does, nothing is written and the dialog says so: to change that item, edit it.
Edit an item
Select a row and choose . Querlyn reads the item again, whole and with a consistent read, and shows it in the dialog. Change values, add attributes or remove them, and choose Save Item.
- Only the attributes you changed are written. An attribute someone else added meanwhile, which you did not see, is left alone.
- The change is made only if every attribute you saw still holds what it held, and only if an attribute you added has not appeared meanwhile. Otherwise nothing is written, and the dialog says the item has changed since it was read: close it, read the items again and repeat the change.
- The key attributes cannot change: they are what finds the item. To move an item to another key, put a new item and delete the old one.
A row read through an index that does not hold the table's key attributes cannot be edited from there: read the table itself, or an index that holds them.
Delete an item
Select a row and choose . Querlyn reads the item again and asks before deleting it. It is deleted only if it is still as it was read; DynamoDB has nothing to undo a delete with.
What asks first
- Delete Item asks wherever the connection's confirmations ask before destructive statements: on Testing, Staging and Production connections unless you changed that in Settings.
- Put Item and Save Item ask on a Production connection.
- A read-only connection refuses every change.
See Confirmations.
Limits
An item with more than 120 attributes cannot be edited or deleted from
the dialog, because Querlyn could not check all of them in one request:
change it with an UPDATE or DELETE statement in a query tab (see
Run PartiQL on DynamoDB).
Each change is one request to DynamoDB, and the notice after it says what it consumed. Several items are not changed together.
Help for Querlyn 0.1.0. All help topics