aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* When Arel is loaded the $LOAD_PATH should already be set properly, so don't ↵Bryan Helmkamp2009-09-201-1/+0
| | | | modify it
* WhitespaceBryan Helmkamp2009-09-209-9/+9
|
* Merge remote branch 'miloops/master' into miloopsBryan Helmkamp2009-09-209-21/+78
|\ | | | | | | | | | | | | Conflicts: spec/connections/mysql_connection.rb spec/connections/postgresql_connection.rb spec/connections/sqlite3_connection.rb
| * Cherry pick AS extensions.Emilio Tagua2009-09-141-0/+4
| |
| * Remove explicit rubygems require. Use Active Support provided by Active ↵Jeremy Kemper2009-09-141-7/+1
| | | | | | | | Record. Add self to load path after requiring Active Record.
| * Require active_support and active_record by name in LOAD_PATH instead of gem ↵Jeremy Kemper2009-09-141-2/+2
| | | | | | | | name (deprecated)
| * Accept Arel::Value in hash values and treat them properly.Emilio Tagua2009-08-141-1/+1
| |
| * 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-012-4/+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
| |
| * Return delete result instead Arel objectEmilio Tagua2009-06-021-2/+0
| |
| * 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.
| * Merge commit 'brynary/master'Emilio Tagua2009-05-2660-0/+1629
| |\ | | | | | | | | | | | | | | | | | | Conflicts: lib/arel.rb lib/arel/session.rb
| * | Removed lib to avoid any conflict in mergeEmilio Tagua2009-05-2641-1144/+0
| | |
| * | Don't quote columns when they are not an attributeEmilio Tagua2009-05-181-3/+8
| | |
| * | Require active_support/core_ext since ActiveRecord don't require it any moreEmilio Tagua2009-05-181-1/+2
| | |
* | | 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
| |
* | Better inspect output for ExpressionsBryan Helmkamp2009-05-181-0/+4
| |
* | Removing unused Pathname extensionBryan Helmkamp2009-05-181-9/+0
| |
* | Expand usages of #hash_on. The #hash definition it produces looks broken, ↵Bryan Helmkamp2009-05-184-14/+26
| | | | | | | | 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
| |
* | Removing Object#metaclass definition (it's already in ActiveSupport)Bryan Helmkamp2009-05-171-6/+0
| |
* | Fix bug in Order equality where Descending.new(attribute) was == ↵Bryan Helmkamp2009-05-171-4/+9
| | | | | | | | Ascending.new(attribute)
* | Removing two unused externalizable? methodsBryan Helmkamp2009-05-172-8/+0
| |
* | Removing unused array extensionsBryan Helmkamp2009-05-172-18/+0
| |
* | Include modules to extend core classes to improve inspectabilityBryan Helmkamp2009-05-1710-84/+134
| |
* | Moving a few stray SQL references in the memory engine codeBryan Helmkamp2009-05-172-15/+14
| |
* | WhitespaceBryan Helmkamp2009-05-1748-93/+93
| |
* | joining across engines in either directionBryan Helmkamp2009-05-171-1/+9
| | | | | | | | | | | | Conflicts: spec/arel/engines/memory/integration/joins/cross_engine_spec.rb
* | initial implementation of cross-engine joinBryan Helmkamp2009-05-177-6/+21
| | | | | | | | | | | | | | Conflicts: lib/arel/engines/memory/relations/array.rb lib/arel/engines/sql/primitives.rb
* | basic implementation of in memory insertionsBryan Helmkamp2009-05-175-1/+16
| | | | | | | | | | | | Conflicts: lib/arel/engines/memory/relations.rb
* | using in memory relations as results from sql relationNick Kallen2009-05-1711-22/+27
| | | | | | | | | | | | | | Conflicts: lib/arel/algebra/primitives/expression.rb lib/arel/algebra/relations/relation.rb
* | performing in memory joinsNick Kallen2009-05-172-0/+25
| |
* | recursive memory operations now possibleBryan Helmkamp2009-05-1710-17/+46
| | | | | | | | | | | | Conflicts: lib/arel/algebra/relations/relation.rb
* | made block stuff read nicerBryan Helmkamp2009-05-174-3/+11
| | | | | | | | | | | | Conflicts: doc/TODO
* | most in memory operations save join and groupBryan Helmkamp2009-05-1715-11/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/arel/algebra/extensions/object.rb lib/arel/algebra/primitives/value.rb lib/arel/engines/memory/relations.rb lib/arel/engines/sql/formatters.rb lib/arel/engines/sql/primitives.rb spec/arel/unit/relations/alias_spec.rb spec/arel/unit/relations/array_spec.rb spec/arel/unit/relations/order_spec.rb
* | moved table-related stuff into sql engineNick Kallen2009-05-173-1/+8
| |
* | join sql stuff moved into sql adapterBryan Helmkamp2009-05-176-22/+43
| | | | | | | | | | | | | | | | | | Conflicts: lib/arel/algebra/primitives/value.rb lib/arel/algebra/relations/operations/join.rb lib/arel/algebra/relations/relation.rb spec/arel/unit/relations/join_spec.rb
* | removed function_sql in favor of polymorphismBryan Helmkamp2009-05-173-16/+48
| | | | | | | | | | | | | | | | Conflicts: lib/arel/algebra/primitives/attribute.rb lib/arel/algebra/primitives/expression.rb spec/arel/unit/primitives/expression_spec.rb
* | consolidated filesBryan Helmkamp2009-05-1721-166/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/arel/algebra/predicates.rb lib/arel/algebra/relations/writes/delete.rb lib/arel/algebra/relations/writes/insert.rb lib/arel/algebra/relations/writes/update.rb lib/arel/engines/memory/predicates.rb lib/arel/engines/memory/relations.rb lib/arel/engines/sql/primitives/attribute.rb lib/arel/engines/sql/relations/writes/insert.rb lib/arel/engines/sql/relations/writes/update.rb
* | reorganized file structuresBryan Helmkamp2009-05-1755-69/+145
| | | | | | | | | | | | | | | | | | | | Conflicts: lib/arel.rb lib/arel/arel.rb lib/arel/engines/memory/predicates.rb lib/arel/engines/memory/relations/array.rb lib/arel/engines/sql/relations/table.rb