FIXME hopefully we can remove this
# File lib/arel/crud.rb, line 55 55: def compile_delete 56: dm = DeleteManager.new @engine 57: dm.wheres = @ctx.wheres 58: dm.from @ctx.froms 59: dm 60: end
# File lib/arel/crud.rb, line 34 34: def compile_insert values 35: im = create_insert 36: im.insert values 37: im 38: end
# File lib/arel/crud.rb, line 5 5: def compile_update values 6: um = UpdateManager.new @engine 7: 8: if Nodes::SqlLiteral === values 9: relation = @ctx.from 10: else 11: relation = values.first.first.relation 12: end 13: um.table relation 14: um.set values 15: um.take @ast.limit.expr if @ast.limit 16: um.order(*@ast.orders) 17: um.wheres = @ctx.wheres 18: um 19: end
# File lib/arel/crud.rb, line 40 40: def create_insert 41: InsertManager.new @engine 42: end
# File lib/arel/crud.rb, line 62 62: def delete 63: if $VERBOSE 64: warn delete (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Pleaseswitch to `compile_delete` 65: end 66: @engine.connection.delete compile_delete.to_sql, 'AREL' 67: end
FIXME: this method should go away
# File lib/arel/crud.rb, line 45 45: def insert values 46: if $VERBOSE 47: warn insert (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Pleaseswitch to `compile_insert` 48: end 49: @engine.connection.insert compile_insert(values).to_sql 50: end
FIXME: this method should go away
# File lib/arel/crud.rb, line 22 22: def update values 23: if $VERBOSE 24: warn update (#{caller.first}) is deprecated and will be removed in ARel 4.0.0. Pleaseswitch to `compile_update` 25: end 26: 27: um = compile_update values 28: @engine.connection.update um.to_sql, 'AREL' 29: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.