Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #445 from oliverguenther/fix/dot-visitor-casted-node | Rafael França | 2016-10-07 | 1 | -0/+5 |
|\ | | | | | Add Arel::Nodes::Casted to dot visitor | ||||
| * | Add Arel::Nodes::Casted to dot visitor | Oliver Günther | 2016-08-27 | 1 | -0/+5 |
| | | | | | | | | | | | | | | Adds casted node to the dot visitor with outgoing edges to val and attribute. Fixes #419 | ||||
* | | Freeze all the strings in visitors | ojab | 2016-08-31 | 1 | -1/+2 |
| | | |||||
* | | Change BindParam visit method for Dot to a noop | Adam Lassek | 2016-08-26 | 1 | -1/+2 |
|/ | | | | | | Since BindParam contains no information, treating it like a string adds no useful information to the graph, and results in an invalid label format. | ||||
* | Support for unified Integer class in Ruby 2.4+ | yui-knk | 2016-05-30 | 1 | -0/+1 |
| | | | | | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 Ruby ~2.3 `1234.class` is `Fixnum` and `123456789012345678901234567890.class` is `Bignum`. Ruby 2.4+ `1234.class` is `Integer` and `123456789012345678901234567890.class` is `Integer`. So what we should do is defining `visit_Integer` method to visitors. | ||||
* | Add Support for GroupBy Cube, Rollup and Grouping Set Syntax for PostgreSQL ↵ | Mohammad Habbab | 2016-05-04 | 1 | -0/+4 |
| | | | | Visitor | ||||
* | Add database specific string concatenation | Keenan Brock | 2016-01-05 | 1 | -0/+1 |
| | |||||
* | move the dispatch table to be per-instance | Aaron Patterson | 2014-09-22 | 1 | -0/+1 |
| | | | | | | | visitors are not shared among threads, so any mutations to the cache should be OK. The cache is also pre-populated on construction, but we should pull that out so we can share the cache among visitors in the future. | ||||
* | Merge pull request #137 from dimko/visit_set | Rafael Mendonça França | 2014-09-17 | 1 | -0/+1 |
|\ | | | | | Added a visitor for Set objects | ||||
| * | added a visitor for Set objects | Dimko | 2012-09-18 | 1 | -0/+1 |
| | | |||||
* | | Windowing support for PARTITION BY clause. | Alexander Staubo | 2014-06-20 | 1 | -0/+2 |
| | | |||||
* | | Modify Visitors::Dot's API to use collectors | Jiri Pospisil | 2014-06-14 | 1 | -2/+2 |
| | | |||||
* | | push reduction visitors to a reduction base class | Aaron Patterson | 2014-04-08 | 1 | -1/+2 |
| | | | | | | | | this lets our old depth first and dot visitors to work normally | ||||
* | | Added right and full outer joins | Stephen Prater & Fire-Dragon-DoL | 2014-03-30 | 1 | -1/+3 |
| | | |||||
* | | remove the default parameter and updated comment | Alex Lin | 2014-03-25 | 1 | -2/+2 |
| | | |||||
* | | Removed all the fiels in lib/arel/visitors/ which needs dependency on 'a' ↵ | Alex Lin | 2014-03-24 | 1 | -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::SqlLiteral | Rafael Mendonça França | 2014-02-10 | 1 | -1/+0 |
| | | |||||
* | | Make visitors threadsafe by removing @last_column | Ernie Miller | 2013-04-28 | 1 | -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 -> Arel | Xavier Noria | 2013-04-14 | 1 | -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 visitor | Aaron Patterson | 2013-01-30 | 1 | -1/+1 |
|/ | |||||
* | Add #extract, which produces ANSI SQL function EXTRACT(<field> from <expr>). | Alexander Staubo | 2012-02-23 | 1 | -0/+6 |
| | |||||
* | Support ANSI SQL2003 window functions. | Alexander Staubo | 2012-02-22 | 1 | -0/+19 |
| | |||||
* | bind parameters can be differentiated from sql literals | Aaron Patterson | 2012-02-20 | 1 | -0/+1 |
| | |||||
* | Break Ordering into Ascending/Descending nodes, allow reversal | Ernie Miller | 2011-06-15 | 1 | -1/+0 |
| | |||||
* | Added Arel::Nodes::NamedFunction for representing generic SQL functions | Aaron Patterson | 2011-01-04 | 1 | -7/+18 |
| | |||||
* | top and limit can be visited | Aaron Patterson | 2011-01-03 | 1 | -0/+2 |
| | |||||
* | testing binary ops in the dot visitor | Aaron Patterson | 2010-12-25 | 1 | -14/+16 |
| | |||||
* | fix join dot visitors | Aaron Patterson | 2010-12-20 | 1 | -2/+0 |
| | |||||
* | adding a join source node | Aaron Patterson | 2010-12-14 | 1 | -2/+2 |
| | |||||
* | testing nary nodes in the depth first visitor | Aaron Patterson | 2010-12-10 | 1 | -1/+7 |
| | |||||
* | consolidating dot visitor methods | Aaron Patterson | 2010-12-06 | 1 | -12/+0 |
| | |||||
* | adding a test for the dot visitor | Aaron Patterson | 2010-12-06 | 1 | -2/+9 |
| | |||||
* | doing a little cleanup on the visitors | Aaron Patterson | 2010-10-19 | 1 | -3/+3 |
| | |||||
* | Support Attribute#asc and Attribute#desc to create orderings | Ernie Miller | 2010-09-29 | 1 | -0/+5 |
| | |||||
* | Support visiting Arel_Attribute_Float | Ernie Miller | 2010-09-29 | 1 | -0/+1 |
| | |||||
* | adding better dot file support for our nodes | Aaron Patterson | 2010-09-29 | 1 | -2/+36 |
| | |||||
* | fixing column escape for IN nodes. [resolves:5732] | Aaron Patterson | 2010-09-29 | 1 | -0/+5 |
| | |||||
* | adding offset edge | Aaron Patterson | 2010-09-24 | 1 | -0/+1 |
| | |||||
* | visiting value nodes in the dot visitor | Aaron Patterson | 2010-09-14 | 1 | -0/+4 |
| | |||||
* | adding orders edge to the dot visitor | Aaron Patterson | 2010-09-14 | 1 | -0/+1 |
| | |||||
* | Merge branch 'v1' of github.com:flavorjones/arel into v1 | Aaron Patterson | 2010-09-14 | 1 | -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 nodes | Mike Dalessio | 2010-09-14 | 1 | -0/+7 |
| | | |||||
* | | adding AND nodes to dot visitor | Aaron Patterson | 2010-09-14 | 1 | -0/+1 |
|/ | |||||
* | visiting constraint edges of joins | Aaron Patterson | 2010-09-12 | 1 | -0/+5 |
| | |||||
* | supporting StringJoin in the JoinSQL visitor | Aaron Patterson | 2010-09-12 | 1 | -0/+1 |
| | |||||
* | equality should handle nil correctly | Aaron Patterson | 2010-09-10 | 1 | -0/+1 |
| | |||||
* | visiting symbols in the SQL visitor | Aaron Patterson | 2010-09-08 | 1 | -0/+1 |
| | |||||
* | visiting outer joins | Aaron Patterson | 2010-09-07 | 1 | -0/+1 |
| | |||||
* | getting better on joins | Aaron Patterson | 2010-09-07 | 1 | -0/+7 |
| | |||||
* | dot visitor can visit count nodes | Aaron Patterson | 2010-09-06 | 1 | -0/+5 |
| |