Skip to content

Commit

Permalink
[DynamoDB] feat: Add 'ConditionList.AddKeyAttribute' method (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
evalphobia authored Feb 17, 2020
1 parent b3e16ab commit 841859e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dynamodb/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ func (c *ConditionList) getMergedConditions() map[string]*Condition {
return list
}

// AddKeyAttribute adds to attribute to keyAttributes.
func (c *ConditionList) AddKeyAttribute(attr AttributeDefinition) {
c.keyAttributes[attr.Name] = attr.Type
}

// Condition contains condition.
type Condition struct {
Condition string
Expand Down

0 comments on commit 841859e

Please sign in to comment.