aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/table_alias.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow a type caster to be given to the `Arel::Table` objectSean Griffin2014-12-291-0/+8
| | | | | | | | | This will allow most consuming code to avoid the deprecation introduced in 008445d6fd5f825d9b445ac75a7be67f0f7ab52c. The only code which will be affected is code that is building the `Arel::Table` object manually, rather than calling `arel_table` on an Active Record class. Hopefully this case will be rare enough that we don't need to introduce any additional APIs to work around it.
* Remove `engine` from `TreeManager` and subclassesSean Griffin2014-11-291-4/+0
| | | | | | This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly.
* Add Nodes::TableAlias#engineJon Leighton2012-07-131-0/+4
| | | | | Eventually #engine should go away, but until that time, this means that Table and Nodes::TableAlias can be used more interchangeably.
* Allow using non-table alias as a rhs relation name, fix for #84 and #59JoelJuliano2011-10-301-1/+1
|
* fixing the leg order of TableAlias nodesAaron Patterson2011-03-301-2/+2
|
* Add an #table_name method to Table and TableAlias, which always returns the ↵Jon Leighton2011-03-041-0/+4
| | | | actual table name, not the alias. Then fix ToSql#column_for to use this table name when checking whether the table exists (rather than before, where it was checking whether a table with the alias name exists, which was incorrect).
* adding factory methods to node base classAaron Patterson2010-12-141-1/+1
|
* updating nodes and depth first visitorAaron Patterson2010-11-291-7/+3
|
* make table aliases cheaper to allocateAaron Patterson2010-11-241-6/+2
|
* adding table alias to the TableAlias nodeAaron Patterson2010-09-141-0/+1
|
* adding not equal node, column names are expected to be symbolsAaron Patterson2010-09-101-1/+1
|
* joins can be createdAaron Patterson2010-08-181-0/+20