FIXME hopefully we can remove this
# File lib/arel/crud.rb, line 30
30: def delete
31: dm = DeleteManager.new @engine
32: dm.wheres = @ctx.wheres
33: dm.from @ctx.froms
34: @engine.connection.delete dm.to_sql, 'AREL'
35: end
FIXME: this method should go away
# File lib/arel/crud.rb, line 24
24: def insert values
25: im = InsertManager.new @engine
26: im.insert values
27: @engine.connection.insert im.to_sql
28: end
FIXME: this method should go away
# File lib/arel/crud.rb, line 6
6: def update values
7: um = UpdateManager.new @engine
8:
9: if Nodes::SqlLiteral === values
10: relation = @ctx.froms
11: else
12: relation = values.first.first.relation
13: end
14: um.table relation
15: um.set values
16: um.take @ast.limit
17: um.order(*@ast.orders)
18: um.wheres = @ctx.wheres
19:
20: @engine.connection.update um.to_sql, 'AREL'
21: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.