MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / listCountDeltaAction

Method listCountDeltaAction

lists.go:457–468  ·  view source on GitHub ↗
(key string, delta int64)

Source from the content-addressed store, hash-verified

455}
456
457func (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
470func (c Client) listFindEnd(key string, side LSide) (node listNode, found bool, err error) {
471 queryCondition := newExpresionBuilder()

Callers 4

LINSERTMethod · 0.95
listPopActionsMethod · 0.95
listPushActionsMethod · 0.95
LREMMethod · 0.95

Calls 4

listCountKeyMethod · 0.95
ToAVMethod · 0.65
toAVMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected