Module: ROM::SQL::Commands::Postgres::Update
- Defined in:
- lib/rom/sql/extensions/postgres/commands.rb
Instance Method Summary collapse
-
#update(tuple) ⇒ Object
private
Executes update statement and returns updated tuples.
Instance Method Details
#update(tuple) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Executes update statement and returns updated tuples
38 39 40 |
# File 'lib/rom/sql/extensions/postgres/commands.rb', line 38 def update(tuple) relation.dataset.returning(*relation.columns).update(tuple) end |