aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/window_predications.rb
diff options
context:
space:
mode:
authorAlexander Staubo <alex@origo.no>2012-02-22 15:25:10 +0100
committerAlexander Staubo <alex@origo.no>2012-02-22 15:25:10 +0100
commita1a6fbc189d0cb8c44606eafcb8bda7a010554c0 (patch)
tree05bb006e6a5b39e5796d5eae302642c169ba7d5b /lib/arel/window_predications.rb
parent6e427e589820278908e7a746749eb9b79b0f85e3 (diff)
downloadrails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.tar.gz
rails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.tar.bz2
rails-a1a6fbc189d0cb8c44606eafcb8bda7a010554c0.zip
Support ANSI SQL2003 window functions.
Diffstat (limited to 'lib/arel/window_predications.rb')
-rw-r--r--lib/arel/window_predications.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/arel/window_predications.rb b/lib/arel/window_predications.rb
new file mode 100644
index 0000000000..71844eab53
--- /dev/null
+++ b/lib/arel/window_predications.rb
@@ -0,0 +1,9 @@
+module Arel
+ module WindowPredications
+
+ def over(expr = nil)
+ Nodes::Over.new(self, expr)
+ end
+
+ end
+end \ No newline at end of file