Class: ROM::SQL::Commands::Update
- Inherits:
-
Commands::Update
- Object
- Commands::Update
- ROM::SQL::Commands::Update
- Defined in:
- lib/rom/sql/commands/update.rb
Overview
Update command
Instance Method Summary collapse
-
#execute(tuple) ⇒ Array<Hash>, Hash
Updates existing tuple in a relation.
Instance Method Details
#execute(tuple) ⇒ Array<Hash>, Hash
Updates existing tuple in a relation
26 27 28 |
# File 'lib/rom/sql/commands/update.rb', line 26 def execute(tuple) update(input[tuple].to_h) end |