class Rom::Dynamo::Commands::Delete

DynamoDB delete command

Public Instance Methods

dataset() click to toggle source
# File lib/rom/dynamo/commands.rb, line 42
def dataset
  relation.dataset
end
execute() click to toggle source
# File lib/rom/dynamo/commands.rb, line 36
def execute
  relation.to_a.tap do |tuples|
    tuples.each { |t| dataset.delete(t) }
  end
end