DynamoDB Update Item
Terms
path: Item의 문서 경로 e.g., user, info.name, #namevalue:path에 대입할 값 e.g., :nameoperand:pathorvalue.
ConditionExpression
- Comparator
a = ba <> b: a와 b가 다르면 Truea < ba <= ba > ba >= ba BETWEEN b AND c:(b <= a) AND (a <= c)a IN (b, c):(a = b) OR (a = c), 리스트는 최대 100개 까지 설정할 수 있음
- Function
attribute_exists(path)attribute_not_exists(path)attribute_type(path, type)contains(path, operand)begins_with(path, substr)size(path)
- Logical
a AND ba OR bNOT a
정보
boto3.dynamodb.conditions 을 이용해서 표현할 수 있습니다.
UpdateExpression
SET path = value [, path = value]SET path = valueSET path = operand + operandSET path = operand - operandSET path = list_append(operand, operand)
REMOVE path [, path]
정보
SET path=value REMOVE path 처럼 여러 액션을 수행할 수도 있습니다.