Module: ROM::SQL::Postgres::Commands::Update

Includes:
Core
Defined in:
lib/rom/sql/extensions/postgres/commands.rb

Instance Method Summary collapse

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



58
59
60
# File 'lib/rom/sql/extensions/postgres/commands.rb', line 58

def update(tuple)
  wrap_dataset(returning_dataset.update(tuple))
end