Module: Arel::Relation::Operable::Writable

Included in:
Arel::Relation::Operable
Defined in:
lib/arel/algebra/relations/relation.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject



71
72
73
# File 'lib/arel/algebra/relations/relation.rb', line 71

def delete
  session.delete Deletion.new(self)
end

#insert(record) ⇒ Object



63
64
65
# File 'lib/arel/algebra/relations/relation.rb', line 63

def insert(record)
  session.create Insert.new(self, record)
end

#update(assignments) ⇒ Object



67
68
69
# File 'lib/arel/algebra/relations/relation.rb', line 67

def update(assignments)
  session.update Update.new(self, assignments)
end