FIXME hopefully we can remove this
# File lib/arel/crud.rb, line 30 def delete dm = DeleteManager.new @engine dm.wheres = @ctx.wheres dm.from @ctx.froms @engine.connection.delete dm.to_sql, 'AREL' end
FIXME: this method should go away
# File lib/arel/crud.rb, line 24 def insert values im = InsertManager.new @engine im.insert values @engine.connection.insert im.to_sql end
FIXME: this method should go away
# File lib/arel/crud.rb, line 6 def update values um = UpdateManager.new @engine if Nodes::SqlLiteral === values relation = @ctx.froms else relation = values.first.first.relation end um.table relation um.set values um.take @ast.limit.expr if @ast.limit um.order(*@ast.orders) um.wheres = @ctx.wheres @engine.connection.update um.to_sql, 'AREL' end
Generated with the Darkfish Rdoc Generator 2.