Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Introduce NodeExpression as parent of scalar nodes | Keenan Brock | 2017-12-05 | 1 | -3/+1 |
| | | | | | SQL is very powerful. Many nodes can be used as a sub expression or query. grouping all of these possible nodes together | ||||
* | Add missing hash, eql?, == to various node classes | Maxime Lapointe | 2017-07-25 | 1 | -0/+2 |
| | | | | | | | | | | | Some of the nodes classes are missing either one or many of the common comparison methods #hash, #eql? and #==. This makes comparision and working with the ast sometimes painful, as equality or operations likes array differences (which uses a hash behind the scene) produces unexpected results. A test has been added that ensures that every descendants of Node: * have all 3 methods * that all 3 methods were defined from the same class * that the class defining all 3 is also a descendant of Node, to avoid the default ones that rely on identity only | ||||
* | Enable frozen_string_literal in all files in arel | Rafael Mendonça França | 2017-02-13 | 1 | -0/+1 |
| | |||||
* | Add OrderPredications back into Nodes::Function (removed with deprecation of ↵ | Carson Reinke | 2015-07-23 | 1 | -0/+1 |
| | | | | Expression) | ||||
* | Remove deprecated Arel::Expression | Rafael Mendonça França | 2014-02-10 | 1 | -1/+0 |
| | |||||
* | call super from initialize | Aaron Patterson | 2013-05-17 | 1 | -0/+1 |
| | |||||
* | Add equality to ALL THE THINGS (that matter) | Ernie Miller | 2012-08-18 | 1 | -0/+11 |
| | | | | | | | | | | | | People are often trying to use ARel nodes inside ActiveRecord, and when they do so, lots of things can break, because ActiveRecord relies on Array#uniq and sometimes hash key equality to handle values that end up in wheres, havings, etc. By implementing equality for all the nodes, we should hopefully be able to prevent any nodes (even nodes containing other nodes) from failing an equality check they should otherwise pass, and alleviate many of these errors. Fixes #130 | ||||
* | Support ANSI SQL2003 window functions. | Alexander Staubo | 2012-02-22 | 1 | -0/+1 |
| | |||||
* | Include Arel::Predicates to Arel::Nodes::Function so you can do ↵ | Samuel Kadolph | 2011-05-27 | 1 | -0/+1 |
| | | | | table[:id].count.eq(2) | ||||
* | Stop calling to_s on aliases, require them to be strings already. | Ernie Miller | 2011-04-29 | 1 | -2/+2 |
| | |||||
* | Move #as to AliasPredication, stop overriding Function's #as. | Ernie Miller | 2011-04-29 | 1 | -2/+2 |
| | |||||
* | Added Arel::Nodes::NamedFunction for representing generic SQL functions | Aaron Patterson | 2011-01-04 | 1 | -1/+2 |
| | |||||
* | cleaning up more nodes | Aaron Patterson | 2010-12-14 | 1 | -0/+10 |
| | |||||
* | to_sql on nodes may be passed an engine | Aaron Patterson | 2010-09-27 | 1 | -6/+1 |
| | |||||
* | moving expression up to function class | Aaron Patterson | 2010-09-23 | 1 | -0/+1 |
| | |||||
* | average node is added | Aaron Patterson | 2010-09-08 | 1 | -0/+22 |