(key string, delta int64)
| 455 | } |
| 456 | |
| 457 | func (c Client) listCountDeltaAction(key string, delta int64) dynamodb.TransactWriteItem { |
| 458 | return dynamodb.TransactWriteItem{ |
| 459 | Update: &dynamodb.Update{ |
| 460 | ExpressionAttributeValues: map[string]dynamodb.AttributeValue{ |
| 461 | ":delta": IntValue{delta}.ToAV(), |
| 462 | }, |
| 463 | Key: c.listCountKey(key).toAV(c), |
| 464 | TableName: aws.String(c.table), |
| 465 | UpdateExpression: aws.String(fmt.Sprintf("ADD %v :delta", vk)), |
| 466 | }, |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | func (c Client) listFindEnd(key string, side LSide) (node listNode, found bool, err error) { |
| 471 | queryCondition := newExpresionBuilder() |
no test coverage detected