aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/memory/relations
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 15:47:10 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 15:47:10 -0400
commit07833d39c2885a5cddf38eeb860d79353c0f447b (patch)
tree5312d3ab6eefba0c936bb3b9a7bf2e879899af2e /lib/arel/engines/memory/relations
parent20b28b441b651d0404d64049253898c061a039be (diff)
downloadrails-07833d39c2885a5cddf38eeb860d79353c0f447b.tar.gz
rails-07833d39c2885a5cddf38eeb860d79353c0f447b.tar.bz2
rails-07833d39c2885a5cddf38eeb860d79353c0f447b.zip
basic implementation of in memory insertions
Conflicts: lib/arel/engines/memory/relations.rb
Diffstat (limited to 'lib/arel/engines/memory/relations')
-rw-r--r--lib/arel/engines/memory/relations/writes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/arel/engines/memory/relations/writes.rb b/lib/arel/engines/memory/relations/writes.rb
new file mode 100644
index 0000000000..fa8b84a32c
--- /dev/null
+++ b/lib/arel/engines/memory/relations/writes.rb
@@ -0,0 +1,7 @@
+module Arel
+ class Insert < Compound
+ def eval
+ unoperated_rows + [Row.new(self, record.values.collect(&:value))]
+ end
+ end
+end \ No newline at end of file