class Rom::Dynamo::Commands::Update

DynamoDB update command

Public Instance Methods

dataset() click to toggle source
# File lib/rom/dynamo/commands.rb, line 29
def dataset
  relation.dataset
end
execute(params) click to toggle source
# File lib/rom/dynamo/commands.rb, line 22
def execute(params)
  attributes = input[params]
  relation.map do |tuple|
    dataset.update(tuple, attributes.to_h)
  end
end