Class: ROM::SQL::Commands::Delete
- Inherits:
-
Commands::Delete
- Object
- Commands::Delete
- ROM::SQL::Commands::Delete
- Includes:
- ErrorWrapper
- Defined in:
- lib/rom/sql/commands/delete.rb
Overview
SQL delete command
Instance Method Summary collapse
-
#execute ⇒ Array<Hash>
Deletes tuples from a relation.
Methods included from ErrorWrapper
Instance Method Details
#execute ⇒ Array<Hash>
Deletes tuples from a relation
21 22 23 24 25 |
# File 'lib/rom/sql/commands/delete.rb', line 21 def execute deleted = relation.to_a relation.delete deleted end |