aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/depth_first.rb
Commit message (Collapse)AuthorAgeFilesLines
* push reduction visitors to a reduction base classAaron Patterson2014-04-081-14/+3
| | | | this lets our old depth first and dot visitors to work normally
* more select manager tests passingAaron Patterson2014-04-081-3/+14
|
* Add Regexp and NotRegexp nodes for PostgreSQLJames Le Cuirot2014-04-081-0/+2
|
* Added right and full outer joinsStephen Prater & Fire-Dragon-DoL2014-03-301-0/+2
|
* Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵Alex Lin2014-03-241-56/+56
| | | | also fixed the test case for : test/visitors/test_to_sql.rb:22 which pass in the parameter attribute e.g the parameter a.
* Remove deprecated Arel::SqlLiteralRafael Mendonça França2014-02-101-1/+0
|
* Make visitors threadsafe by removing @last_columnErnie Miller2013-04-281-56/+56
| | | | | | | | | | | | | | | | | | | | | | The last_column feature of the ToSql visitor and its descendants is what enabled quoting based on the column last visited -- in other words, if you have a standard condition like an equality with a string attribute on the left side and an integer on the right side, then when ARel visits the node, it'll first visit the left side attribute, setting the column of the string attribute as the last column, and resulting in the right side of the condition getting the appropriate quoting. The downside is that this means that visitors can't be shared between threads, because of the state mutation. It also makes for some really weird behavior in the event that the visitor visits a node that happens to contain an attribute you weren't expecting to be there, since it'll potentially quote something based on that attribute. So, it prevents reversing an equality condition. column = value will work, but not value = column, since the last column wouldn't be the column you're hoping for. This is a first pass at fixing this by changing the signature of the visit methods to accept the currently-relevant attribute, if any.
* Adds visit_Arel_Nodes_InfixOperation to Arel::Visitors::DepthFirstBenedikt Deicke2012-03-221-0/+1
|
* Support ANSI SQL2003 window functions.Alexander Staubo2012-02-221-0/+2
|
* bind parameters can be differentiated from sql literalsAaron Patterson2012-02-201-0/+1
|
* fix depth first visitor to support ascending and descending nodesAaron Patterson2011-06-291-0/+2
|
* Break Ordering into Ascending/Descending nodes, allow reversalErnie Miller2011-06-151-1/+1
|
* Added Arel::Nodes::NamedFunction for representing generic SQL functionsAaron Patterson2011-01-041-0/+8
|
* top and limit can be visitedAaron Patterson2011-01-031-0/+2
|
* string join should be a unary opAaron Patterson2010-12-141-1/+4
|
* select core should visit the source nodeAaron Patterson2010-12-141-1/+2
|
* adding a join source nodeAaron Patterson2010-12-141-8/+2
|
* testing nary nodes in the depth first visitorAaron Patterson2010-12-101-1/+5
|
* base class works with visitorAaron Patterson2010-11-291-0/+1
|
* refactor block.call out of each visit methodAaron Patterson2010-11-291-14/+5
|
* updating nodes and depth first visitorAaron Patterson2010-11-291-13/+64
|
* insert statements supportedAaron Patterson2010-11-291-0/+7
|
* adding select statement supportAaron Patterson2010-11-291-0/+9
|
* adding select coreAaron Patterson2010-11-291-0/+9
|
* update statement supportedAaron Patterson2010-11-291-0/+9
|
* mostly implemented depth-first traversalAaron Patterson2010-11-291-0/+75