aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/unary.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #481 from lautis/lateralAaron Patterson2017-12-281-0/+1
|\ | | | | Lateral expressions for PostgreSQL
| * PostgreSQL lateral expressionsVille Lautanala2017-04-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Support for PostgreSQL lateral expressions. This is treated as an unary function applied to a query expression. Lateral is a separate function to provide interoperability with aliases and unions. These are also separate node types that wrap SelectStatements. The lateral option would need to be implemented in these nodes separately if lateral was an option of SelectStatement. When building the query, an alias can be given as an argument. This enables building a lateral query with an table alias without using either Nodes::TableAlias or Nodes::Lateral directly.
* | Introduce NodeExpression as parent of scalar nodesKeenan Brock2017-12-051-1/+1
|/ | | | | SQL is very powerful. Many nodes can be used as a sub expression or query. grouping all of these possible nodes together
* Enable frozen_string_literal in all files in arelRafael Mendonça França2017-02-131-0/+1
|
* Add Support for GroupBy Cube, Rollup and Grouping Set Syntax for PostgreSQL ↵Mohammad Habbab2016-05-041-2/+6
| | | | Visitor
* Change the interface of `having` to match that of `where`Sean Griffin2015-01-271-1/+0
| | | | | | These two clauses have nearly identical semantics with regards to how they would be constructed as an AST. It doesn't make sense for their interfaces to be separate.
* call super from initializeAaron Patterson2013-05-171-0/+1
|
* Add equality to ALL THE THINGS (that matter)Ernie Miller2012-08-181-0/+10
| | | | | | | | | | | | 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
* Include Predications in GroupingErnie Miller2012-05-191-1/+0
| | | | | | Also, removed unused ordering.rb file, since it is identical to the one being created in unary.rb already, and isn't required anywhere.
* Break Ordering into Ascending/Descending nodes, allow reversalErnie Miller2011-06-151-0/+1
|
* adding Distinct ON nodeAaron Patterson2011-04-211-6/+1
|
* adding a DISTINCT nodeAaron Patterson2011-04-211-0/+6
|
* adding a Bin node to emit mysql BINARY keywordsAaron Patterson2011-04-111-0/+1
|
* Lock should be a unary nodeAaron Patterson2011-02-211-0/+1
|
* Merge branch '2-0-stable' into mergeAaron Patterson2011-01-031-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 2-0-stable: updating history Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James Abley (https://github.com/jabley/arel). consolidating dot visitor methods refactoring where, fixing subselect implementation for passing a subquery to #in and #not_in tests for passing a subquery to #in and #not_in limit members of the AST are visited quoting limit nodes Conflicts: History.txt lib/arel/nodes.rb lib/arel/nodes/select_core.rb lib/arel/select_manager.rb lib/arel/visitors/to_sql.rb test/visitors/test_to_sql.rb
* | cleaning up more nodesAaron Patterson2010-12-141-0/+12
|/
* adding unary nodeAaron Patterson2010-11-291-0/+11