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

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



40
41
42
43
# File 'lib/rom/sql/extensions/postgres/commands.rb', line 40

def update(tuple)
  dataset = relation.dataset.returning.update(tuple)
  wrap_dataset(dataset)
end