aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Fix the generated SQL when In predicate is supplied an empty ArrayPratik Naik2010-01-301-0/+19
|
* Make sure string join relations can be chainedPratik Naik2010-01-131-1/+30
|
* Make sure not to use alias if it's same as the table namePratik Naik2010-01-121-0/+19
|
* Add support for table aliasingPratik Naik2010-01-012-2/+74
| | | | | | | Example : users = Table(:users, :as => :accounts) users.to_sql => SELECT `accounts`.`id`, `accounts`.`name` FROM `users` AS `accounts`
* Added having to use in combination with group to filter records.Emilio Tagua2009-12-284-0/+57
|
* Don't try to lock reads when using any SQLite adapter, it's redundantEmilio Tagua2009-12-281-2/+16
| | | | and may generate an invalid query.
* Added lock to Arel, allowing a locking read if required.Emilio Tagua2009-12-271-0/+47
|
* Added "from" method, allowing to specify custom from clauses.Emilio Tagua2009-12-271-0/+50
|
* Ruby 1.9: Improve the way we spec thisBryan Helmkamp2009-11-091-2/+2
|
* Switch from rr to RSpec mocks. rr has issues on 1.9.2preBryan Helmkamp2009-11-094-11/+11
|
* Ruby 1.9: the constants must be qualifiedBryan Helmkamp2009-11-096-10/+10
|
* Adding spec.optsBryan Helmkamp2009-10-011-0/+3
|
* Create Predicates module to match directory structureBryan Helmkamp2009-09-309-260/+274
|
* Fix almost all Ruby warnings during spec suiteBryan Helmkamp2009-09-208-15/+26
|
* WhitespaceBryan Helmkamp2009-09-202-3/+3
|
* Merge remote branch 'miloops/master' into miloopsBryan Helmkamp2009-09-2056-75/+93
|\ | | | | | | | | | | | | Conflicts: spec/connections/mysql_connection.rb spec/connections/postgresql_connection.rb spec/connections/sqlite3_connection.rb
| * Use load path rather than relative path for spec_helper requires. Also fixes ↵Jeremy Kemper2009-09-1453-53/+53
| | | | | | | | specs on Ruby 1.9 since . is no longer in the load path.
| * Require active_support and active_record by name in LOAD_PATH instead of gem ↵Jeremy Kemper2009-09-143-4/+7
| | | | | | | | name (deprecated)
| * Allow SQL strings to insert query. Insert should better return engine's result.Emilio Tagua2009-07-012-10/+9
| |
| * Build valid SQL query for SQLite3 and PostgreSQL when updating records with ↵Emilio Tagua2009-06-231-6/+12
| | | | | | | | limited conditions
| * Allow expressions on literal SQL fragmentsEmilio Tagua2009-05-281-0/+12
| |
| * Merge commit 'brynary/master'Emilio Tagua2009-05-2683-1292/+2640
| |\ | | | | | | | | | | | | | | | | | | Conflicts: lib/arel.rb lib/arel/session.rb
* | | Bug fix: Don't use #delegate to declare delegations when intentionally ↵Lee Bankewitz2009-08-102-1/+16
| | | | | | | | | | | | | | | | | | delegating to nil This accounts for a behavior change after Rails 2.3
* | | Adding jeweler for gem managementBryan Helmkamp2009-08-063-0/+3
| |/ |/|
* | Adding SqlLiteral with spec for countsBryan Helmkamp2009-05-191-0/+23
| |
* | Expand sql engine CRUD specsBryan Helmkamp2009-05-181-5/+14
| |
* | Log queries to debug.log when running specsBryan Helmkamp2009-05-183-0/+6
| |
* | Better inspect output for ExpressionsBryan Helmkamp2009-05-181-0/+6
| |
* | Remvoing unused variable from specBryan Helmkamp2009-05-181-1/+0
| |
* | Adding skeleton of spec for CRUD operations in Sql::EngineBryan Helmkamp2009-05-171-0/+36
| |
* | Fix bug in Order equality where Descending.new(attribute) was == ↵Bryan Helmkamp2009-05-172-2/+12
| | | | | | | | Ascending.new(attribute)
* | Moving SQL predicates spec to correct dirBryan Helmkamp2009-05-171-1/+1
| |
* | Added PostgreSQL to buildBryan Helmkamp2009-05-178-13/+132
| |
* | Add spec for Attribute#inspectBryan Helmkamp2009-05-171-0/+6
| |
* | WhitespaceBryan Helmkamp2009-05-1746-150/+150
| |
* | joining across engines in either directionBryan Helmkamp2009-05-171-11/+28
| | | | | | | | | | | | Conflicts: spec/arel/engines/memory/integration/joins/cross_engine_spec.rb
* | initial implementation of cross-engine joinBryan Helmkamp2009-05-171-0/+31
| | | | | | | | | | | | | | Conflicts: lib/arel/engines/memory/relations/array.rb lib/arel/engines/sql/primitives.rb
* | basic implementation of in memory insertionsBryan Helmkamp2009-05-171-0/+28
| | | | | | | | | | | | Conflicts: lib/arel/engines/memory/relations.rb
* | using in memory relations as results from sql relationNick Kallen2009-05-173-8/+16
| | | | | | | | | | | | | | Conflicts: lib/arel/algebra/primitives/expression.rb lib/arel/algebra/relations/relation.rb
* | performing in memory joinsNick Kallen2009-05-171-0/+32
| |
* | better test orderingBryan Helmkamp2009-05-176-86/+145
| | | | | | | | | | | | Conflicts: doc/TODO
* | recursive memory operations now possibleBryan Helmkamp2009-05-171-26/+57
| | | | | | | | | | | | Conflicts: lib/arel/algebra/relations/relation.rb
* | removed duplicates from sql testsBryan Helmkamp2009-05-1713-553/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: spec/arel/engines/sql/unit/predicates/binary_spec.rb spec/arel/engines/sql/unit/predicates/equality_spec.rb spec/arel/engines/sql/unit/primitives/attribute_spec.rb spec/arel/engines/sql/unit/primitives/expression_spec.rb spec/arel/engines/sql/unit/relations/alias_spec.rb spec/arel/engines/sql/unit/relations/join_spec.rb spec/arel/engines/sql/unit/relations/project_spec.rb spec/arel/engines/sql/unit/relations/relation_spec.rb spec/arel/engines/sql/unit/relations/table_spec.rb spec/arel/engines/sql/unit/relations/where_spec.rb spec/arel/engines/sql/unit/session/session_spec.rb
* | reorganizing testsNick Kallen2009-05-1744-24/+790
| |
* | most in memory operations save join and groupBryan Helmkamp2009-05-173-19/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | join sql stuff moved into sql adapterBryan Helmkamp2009-05-172-8/+8
| | | | | | | | | | | | | | | | | | 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-172-9/+9
| | | | | | | | | | | | | | | | Conflicts: lib/arel/algebra/primitives/attribute.rb lib/arel/algebra/primitives/expression.rb spec/arel/unit/primitives/expression_spec.rb
* | consolidated filesBryan Helmkamp2009-05-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-174-5/+12
| | | | | | | | | | | | | | | | | | | | 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
* | moved sql related code to its own engine areaBryan Helmkamp2009-05-174-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/arel/engine.rb lib/arel/extensions/object.rb lib/arel/predicates.rb lib/arel/primitives/attribute.rb lib/arel/primitives/expression.rb lib/arel/primitives/value.rb lib/arel/relations/operations/join.rb lib/arel/relations/relation.rb lib/arel/relations/utilities/externalization.rb lib/arel/relations/utilities/nil.rb lib/arel/relations/writes/delete.rb lib/arel/relations/writes/insert.rb lib/arel/relations/writes/update.rb spec/arel/unit/relations/skip_spec.rb spec/arel/unit/relations/take_spec.rb spec/spec_helper.rb