Sean Griffin
6160bfbda1
Allow a type caster to be given to the Arel::Table
object
...
This will allow most consuming code to avoid the deprecation introduced
in 008445d6fd
. The only code which will be
affected is code that is building the `Arel::Table` object manually,
rather than calling `arel_table` on an Active Record class. Hopefully
this case will be rare enough that we don't need to introduce any
additional APIs to work around it.
2014-12-29 11:27:32 -07:00
Ernie Miller
7361b6cbd5
Move #as to AliasPredication, stop overriding Function's #as.
2011-04-29 11:13:41 -07:00
Arthur Taylor
85882d1b26
Add support for ordering on expressions
...
Conflicts:
lib/arel.rb
lib/arel/attributes/attribute.rb
lib/arel/nodes/infix_operation.rb
lib/arel/nodes/named_function.rb
Conflicts:
lib/arel.rb
lib/arel/attributes/attribute.rb
2011-04-28 10:11:50 +02:00
Aaron Patterson
113240e0b7
adding attribute#lower for lowercasing an attribute
2011-04-25 12:12:05 -07:00
Aaron Patterson
e7cdaedb6b
cleaning up math operations on attributes
2011-03-07 08:35:48 -08:00
Vladimir Meremyanin
2158d592c0
implemented support for math operations in numeric attributes
2011-01-29 14:40:39 +08:00
Aaron Patterson
40603729cc
attributes do not need a column member
2010-12-03 15:24:30 -08:00
Aaron Patterson
f0139a16c2
returning undefined for unknown column types
2010-11-16 08:09:26 -08:00
Ernie Miller
01e7ceef45
Refactor predication methods to be available to SqlLiterals as well.
2010-10-27 22:34:04 +08:00
Ernie Miller
eef61ab909
Support Attribute#asc and Attribute#desc to create orderings
2010-09-29 20:08:57 -04:00
Ernie Miller
3a994b9949
Add support for remaining *_any/*_all attribute methods, and add matches/does_not_match/not_in
2010-09-29 15:43:51 -04:00
Ernie Miller
261d284136
Add eq_any.
2010-09-29 12:54:13 -04:00
Aaron Patterson
0e98ef149c
supporting ranges for IN statements
2010-09-20 16:23:23 -07:00
Aaron Patterson
d8de55cee1
adding crazy code to fix the last two AR tests
2010-09-20 13:29:12 -07:00
Aaron Patterson
188fc7a464
refactoring expressions to a module
2010-09-14 15:20:24 -07:00
Emilio Tagua
5daafa8e95
Add Min node.
2010-09-11 13:18:20 +08:00
Aaron Patterson
f0f6b7fb90
adding not equal node, column names are expected to be symbols
2010-09-10 16:58:19 -07:00
Aaron Patterson
9fdaf497cb
added a greater than node
2010-09-10 11:47:03 -07:00
Aaron Patterson
6032d40c1d
added greater than or equal to node
2010-09-10 11:39:50 -07:00
Aaron Patterson
24000a51a7
average node is added
2010-09-08 16:23:15 -07:00
Aaron Patterson
7b122f9a33
adding maximum nodes
2010-09-08 15:08:00 -07:00
Aaron Patterson
7b8944cb76
adding a sum node
2010-09-08 14:36:10 -07:00
Aaron Patterson
437a9a2225
count takes distinct
2010-09-07 16:45:25 -07:00
Aaron Patterson
5ab502a755
adding "as" and to_sql to count nodes
2010-09-07 16:37:11 -07:00
Aaron Patterson
d12580a7ee
spec:v1:sqlite3 works for running our specs
2010-08-16 14:42:20 -07:00
Aaron Patterson
4127484bc1
adding first node
2010-08-12 15:22:26 -07:00
Aaron Patterson
196b4e05b7
tables can fetch attributes
2010-08-12 14:55:31 -07:00