aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/dot.rb
Commit message (Collapse)AuthorAgeFilesLines
* push reduction visitors to a reduction base classAaron Patterson2014-04-081-1/+2
| | | | this lets our old depth first and dot visitors to work normally
* Added right and full outer joinsStephen Prater & Fire-Dragon-DoL2014-03-301-1/+3
|
* remove the default parameter and updated commentAlex Lin2014-03-251-2/+2
|
* Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵Alex Lin2014-03-241-74/+74
| | | | 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-75/+75
| | | | | | | | | | | | | | | | | | | | | | 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.
* ARel -> ArelXavier Noria2013-04-141-1/+1
| | | | | | | The project uses "Arel" most of the time, but there were a few "ARel" here and there. I checked with @brynary back in 2010 to pick one for the Rails documentation guidelines and "Arel" was chosen and documented. This patch chooses "Arel" vs "ARel" based on that.
* fixing bind param visiting in the dot visitorAaron Patterson2013-01-301-1/+1
|
* Add #extract, which produces ANSI SQL function EXTRACT(<field> from <expr>).Alexander Staubo2012-02-231-0/+6
|
* Support ANSI SQL2003 window functions.Alexander Staubo2012-02-221-0/+19
|
* bind parameters can be differentiated from sql literalsAaron Patterson2012-02-201-0/+1
|
* Break Ordering into Ascending/Descending nodes, allow reversalErnie Miller2011-06-151-1/+0
|
* Added Arel::Nodes::NamedFunction for representing generic SQL functionsAaron Patterson2011-01-041-7/+18
|
* top and limit can be visitedAaron Patterson2011-01-031-0/+2
|
* testing binary ops in the dot visitorAaron Patterson2010-12-251-14/+16
|
* fix join dot visitorsAaron Patterson2010-12-201-2/+0
|
* adding a join source nodeAaron Patterson2010-12-141-2/+2
|
* testing nary nodes in the depth first visitorAaron Patterson2010-12-101-1/+7
|
* consolidating dot visitor methodsAaron Patterson2010-12-061-12/+0
|
* adding a test for the dot visitorAaron Patterson2010-12-061-2/+9
|
* doing a little cleanup on the visitorsAaron Patterson2010-10-191-3/+3
|
* Support Attribute#asc and Attribute#desc to create orderingsErnie Miller2010-09-291-0/+5
|
* Support visiting Arel_Attribute_FloatErnie Miller2010-09-291-0/+1
|
* adding better dot file support for our nodesAaron Patterson2010-09-291-2/+36
|
* fixing column escape for IN nodes. [resolves:5732]Aaron Patterson2010-09-291-0/+5
|
* adding offset edgeAaron Patterson2010-09-241-0/+1
|
* visiting value nodes in the dot visitorAaron Patterson2010-09-141-0/+4
|
* adding orders edge to the dot visitorAaron Patterson2010-09-141-0/+1
|
* Merge branch 'v1' of github.com:flavorjones/arel into v1Aaron Patterson2010-09-141-1/+6
|\ | | | | | | | | | | | | | | | | * 'v1' of github.com:flavorjones/arel: sql visitor should emit a table alias name when visiting an attribute, if a table alias exists. dot visitor for binary nodes Conflicts: lib/arel/visitors/dot.rb
| * dot visitor for binary nodesMike Dalessio2010-09-141-0/+7
| |
* | adding AND nodes to dot visitorAaron Patterson2010-09-141-0/+1
|/
* visiting constraint edges of joinsAaron Patterson2010-09-121-0/+5
|
* supporting StringJoin in the JoinSQL visitorAaron Patterson2010-09-121-0/+1
|
* equality should handle nil correctlyAaron Patterson2010-09-101-0/+1
|
* visiting symbols in the SQL visitorAaron Patterson2010-09-081-0/+1
|
* visiting outer joinsAaron Patterson2010-09-071-0/+1
|
* getting better on joinsAaron Patterson2010-09-071-0/+7
|
* dot visitor can visit count nodesAaron Patterson2010-09-061-0/+5
|
* adding string join nodes and a visitor to produce backwards compatible ↵Aaron Patterson2010-08-241-0/+5
| | | | "join_sql"
* dot visitor supports Arel::Nodes::UpdateStatementMike Dalessio2010-08-161-0/+6
|
* dot visitor supports Arel::Nodes::EqualityMike Dalessio2010-08-161-0/+5
|
* dot visitor supports symbolsMike Dalessio2010-08-161-0/+1
|
* sql visitor can deal with TrueClassAaron Patterson2010-08-161-0/+8
|
* quoting strings from equality statements, adding to_dotAaron Patterson2010-08-161-1/+7
|
* insert manager implements "insert"Aaron Patterson2010-08-131-3/+19
|
* adding a dot visitor to make our lives easierAaron Patterson2010-08-131-0/+108