aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of github.com:rails/arelEmilio Tagua2010-02-171-1/+1
|\
| * Quoting every part of a Range. Calling .to_s is not enough for Range with ↵Eugene Pimenov2010-02-011-1/+1
| | | | | | | | two Time objects.
* | Move update conditions with limit logic into compilers.Emilio Tagua2010-02-163-10/+15
| |
* | If a compiler is not found for the current adapter, use the generic one.Emilio Tagua2010-02-161-1/+5
| |
* | Removed blank lines, rename query to subquery.Emilio Tagua2010-02-161-4/+2
| |
* | Move using_distinct_on? to PostgreSQL compiler. Extract order tweakingEmilio Tagua2010-02-162-9/+12
| | | | | | | | to a new method.
* | Extract SQL logic from Arel::Relation into compilers.Emilio Tagua2010-02-159-74/+130
|/
* Fix the generated SQL when In predicate is supplied an empty ArrayPratik Naik2010-01-301-1/+5
|
* Cache adapter_name in Sql::EnginePratik Naik2010-01-211-0/+4
|
* Table alias should be considered when checking for equalityPratik Naik2010-01-121-2/+3
|
* Make sure not to use alias if it's same as the table namePratik Naik2010-01-121-1/+1
|
* Add support for table aliasingPratik Naik2010-01-012-4/+17
| | | | | | | Example : users = Table(:users, :as => :accounts) users.to_sql => SELECT `accounts`.`id`, `accounts`.`name` FROM `users` AS `accounts`
* Remove every new line when generating queries, this may build invalid ↵Emilio Tagua2009-12-312-5/+5
| | | | queries on SQLite.
* Added having to use in combination with group to filter records.Emilio Tagua2009-12-282-0/+12
|
* Don't try to lock reads when using any SQLite adapter, it's redundantEmilio Tagua2009-12-281-1/+1
| | | | and may generate an invalid query.
* Added lock to Arel, allowing a locking read if required.Emilio Tagua2009-12-271-2/+4
|
* Don't split sql logging across multiple lines.Emilio Tagua2009-12-271-1/+1
|
* Removed useless attribute definition from TableReference.Emilio Tagua2009-12-271-4/+0
|
* Added "from" method, allowing to specify custom from clauses.Emilio Tagua2009-12-273-2/+16
|
* Don't split sql logging across multiple lines.Emilio Tagua2009-12-261-1/+1
|
* Ruby 1.9: Array#to_s behaves like inspect now, so we don't want to use it ↵Bryan Helmkamp2009-11-101-1/+1
| | | | here (needs spec!)
* Ruby 1.9: Sort attributes deterministically so specs always passBryan Helmkamp2009-11-091-3/+19
|
* Removing unused params from #to_sql methods on writesBryan Helmkamp2009-10-011-3/+4
|
* WhitespaceBryan Helmkamp2009-09-301-9/+9
|
* Create Predicates module to match directory structureBryan Helmkamp2009-09-302-59/+63
|
* Move extensions directories to core_extensionsBryan Helmkamp2009-09-307-5/+5
|
* WhitespaceBryan Helmkamp2009-09-204-4/+4
|
* Merge remote branch 'miloops/master' into miloopsBryan Helmkamp2009-09-205-13/+72
|\ | | | | | | | | | | | | Conflicts: spec/connections/mysql_connection.rb spec/connections/postgresql_connection.rb spec/connections/sqlite3_connection.rb
| * Allow joining a StringJoin with another join relation.Emilio Tagua2009-08-141-2/+2
| |
| * Allow SQL strings to insert query. Insert should better return engine's result.Emilio Tagua2009-07-011-3/+8
| |
| * If the class or method isn't defined use "id" as primary_key.Emilio Tagua2009-06-231-1/+6
| |
| * Build valid SQL query when using PostreSQL with given order and DISTINCTEmilio Tagua2009-06-231-0/+24
| | | | | | | | ON clause. TODO: refactoring to clean up components.
| * Build valid SQL query for SQLite3 and PostgreSQL when updating records with ↵Emilio Tagua2009-06-231-2/+18
| | | | | | | | limited conditions
| * Allow strings as update assignmentsEmilio Tagua2009-06-101-3/+7
| |
| * Allow expressions on literal SQL fragmentsEmilio Tagua2009-05-281-1/+3
| |
| * Don't quote the table if it isn't a table name. By doing this Arel supports ↵Emilio Tagua2009-05-281-2/+6
| | | | | | | | using custom SQL FROM like: edges USE INDEX(unique_edge_index)
| * This should be performed by the engine, if it does not exists, then create ↵Emilio Tagua2009-05-281-1/+0
| | | | | | | | SQLLiteral not Attribute.
* | Bug fix: Don't use #delegate to declare delegations when intentionally ↵Lee Bankewitz2009-08-101-2/+8
|/ | | | | | delegating to nil This accounts for a behavior change after Rails 2.3
* Adding SqlLiteral with spec for countsBryan Helmkamp2009-05-191-0/+10
|
* Expand usages of #hash_on. The #hash definition it produces looks broken, ↵Bryan Helmkamp2009-05-181-1/+8
| | | | but leaving it for now
* Cleanup Sql formatters a bitBryan Helmkamp2009-05-181-16/+8
|
* Cleaning up Sql::Engine#readBryan Helmkamp2009-05-181-6/+0
|
* Extracting #build_query method for creating SQL from partsBryan Helmkamp2009-05-173-16/+25
|
* Refactor #select_sql. Extract methods to generate clausesBryan Helmkamp2009-05-171-7/+27
|
* Include modules to extend core classes to improve inspectabilityBryan Helmkamp2009-05-174-21/+46
|
* Moving a few stray SQL references in the memory engine codeBryan Helmkamp2009-05-172-15/+14
|
* WhitespaceBryan Helmkamp2009-05-1728-50/+50
|
* initial implementation of cross-engine joinBryan Helmkamp2009-05-176-4/+18
| | | | | | | Conflicts: lib/arel/engines/memory/relations/array.rb lib/arel/engines/sql/primitives.rb
* basic implementation of in memory insertionsBryan Helmkamp2009-05-173-0/+12
| | | | | | Conflicts: lib/arel/engines/memory/relations.rb
* using in memory relations as results from sql relationNick Kallen2009-05-175-16/+8
| | | | | | | Conflicts: lib/arel/algebra/primitives/expression.rb lib/arel/algebra/relations/relation.rb