Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Cache adapter_name in Sql::Engine | Pratik Naik | 2010-01-21 | 1 | -0/+4 |
| | |||||
* | Table alias should be considered when checking for equality | Pratik Naik | 2010-01-12 | 1 | -2/+3 |
| | |||||
* | Make sure not to use alias if it's same as the table name | Pratik Naik | 2010-01-12 | 1 | -1/+1 |
| | |||||
* | Add support for table aliasing | Pratik Naik | 2010-01-01 | 2 | -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 Tagua | 2009-12-31 | 2 | -5/+5 |
| | | | | queries on SQLite. | ||||
* | Added having to use in combination with group to filter records. | Emilio Tagua | 2009-12-28 | 2 | -0/+12 |
| | |||||
* | Don't try to lock reads when using any SQLite adapter, it's redundant | Emilio Tagua | 2009-12-28 | 1 | -1/+1 |
| | | | | and may generate an invalid query. | ||||
* | Added lock to Arel, allowing a locking read if required. | Emilio Tagua | 2009-12-27 | 1 | -2/+4 |
| | |||||
* | Don't split sql logging across multiple lines. | Emilio Tagua | 2009-12-27 | 1 | -1/+1 |
| | |||||
* | Removed useless attribute definition from TableReference. | Emilio Tagua | 2009-12-27 | 1 | -4/+0 |
| | |||||
* | Added "from" method, allowing to specify custom from clauses. | Emilio Tagua | 2009-12-27 | 3 | -2/+16 |
| | |||||
* | Don't split sql logging across multiple lines. | Emilio Tagua | 2009-12-26 | 1 | -1/+1 |
| | |||||
* | Ruby 1.9: Array#to_s behaves like inspect now, so we don't want to use it ↵ | Bryan Helmkamp | 2009-11-10 | 1 | -1/+1 |
| | | | | here (needs spec!) | ||||
* | Ruby 1.9: Sort attributes deterministically so specs always pass | Bryan Helmkamp | 2009-11-09 | 1 | -3/+19 |
| | |||||
* | Removing unused params from #to_sql methods on writes | Bryan Helmkamp | 2009-10-01 | 1 | -3/+4 |
| | |||||
* | Whitespace | Bryan Helmkamp | 2009-09-30 | 1 | -9/+9 |
| | |||||
* | Create Predicates module to match directory structure | Bryan Helmkamp | 2009-09-30 | 2 | -59/+63 |
| | |||||
* | Move extensions directories to core_extensions | Bryan Helmkamp | 2009-09-30 | 7 | -5/+5 |
| | |||||
* | Whitespace | Bryan Helmkamp | 2009-09-20 | 4 | -4/+4 |
| | |||||
* | Merge remote branch 'miloops/master' into miloops | Bryan Helmkamp | 2009-09-20 | 5 | -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 Tagua | 2009-08-14 | 1 | -2/+2 |
| | | |||||
| * | Allow SQL strings to insert query. Insert should better return engine's result. | Emilio Tagua | 2009-07-01 | 1 | -3/+8 |
| | | |||||
| * | If the class or method isn't defined use "id" as primary_key. | Emilio Tagua | 2009-06-23 | 1 | -1/+6 |
| | | |||||
| * | Build valid SQL query when using PostreSQL with given order and DISTINCT | Emilio Tagua | 2009-06-23 | 1 | -0/+24 |
| | | | | | | | | ON clause. TODO: refactoring to clean up components. | ||||
| * | Build valid SQL query for SQLite3 and PostgreSQL when updating records with ↵ | Emilio Tagua | 2009-06-23 | 1 | -2/+18 |
| | | | | | | | | limited conditions | ||||
| * | Allow strings as update assignments | Emilio Tagua | 2009-06-10 | 1 | -3/+7 |
| | | |||||
| * | Allow expressions on literal SQL fragments | Emilio Tagua | 2009-05-28 | 1 | -1/+3 |
| | | |||||
| * | Don't quote the table if it isn't a table name. By doing this Arel supports ↵ | Emilio Tagua | 2009-05-28 | 1 | -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 Tagua | 2009-05-28 | 1 | -1/+0 |
| | | | | | | | | SQLLiteral not Attribute. | ||||
* | | Bug fix: Don't use #delegate to declare delegations when intentionally ↵ | Lee Bankewitz | 2009-08-10 | 1 | -2/+8 |
|/ | | | | | | delegating to nil This accounts for a behavior change after Rails 2.3 | ||||
* | Adding SqlLiteral with spec for counts | Bryan Helmkamp | 2009-05-19 | 1 | -0/+10 |
| | |||||
* | Expand usages of #hash_on. The #hash definition it produces looks broken, ↵ | Bryan Helmkamp | 2009-05-18 | 1 | -1/+8 |
| | | | | but leaving it for now | ||||
* | Cleanup Sql formatters a bit | Bryan Helmkamp | 2009-05-18 | 1 | -16/+8 |
| | |||||
* | Cleaning up Sql::Engine#read | Bryan Helmkamp | 2009-05-18 | 1 | -6/+0 |
| | |||||
* | Extracting #build_query method for creating SQL from parts | Bryan Helmkamp | 2009-05-17 | 3 | -16/+25 |
| | |||||
* | Refactor #select_sql. Extract methods to generate clauses | Bryan Helmkamp | 2009-05-17 | 1 | -7/+27 |
| | |||||
* | Include modules to extend core classes to improve inspectability | Bryan Helmkamp | 2009-05-17 | 4 | -21/+46 |
| | |||||
* | Moving a few stray SQL references in the memory engine code | Bryan Helmkamp | 2009-05-17 | 2 | -15/+14 |
| | |||||
* | Whitespace | Bryan Helmkamp | 2009-05-17 | 28 | -50/+50 |
| | |||||
* | initial implementation of cross-engine join | Bryan Helmkamp | 2009-05-17 | 6 | -4/+18 |
| | | | | | | | Conflicts: lib/arel/engines/memory/relations/array.rb lib/arel/engines/sql/primitives.rb | ||||
* | basic implementation of in memory insertions | Bryan Helmkamp | 2009-05-17 | 3 | -0/+12 |
| | | | | | | Conflicts: lib/arel/engines/memory/relations.rb | ||||
* | using in memory relations as results from sql relation | Nick Kallen | 2009-05-17 | 5 | -16/+8 |
| | | | | | | | Conflicts: lib/arel/algebra/primitives/expression.rb lib/arel/algebra/relations/relation.rb | ||||
* | performing in memory joins | Nick Kallen | 2009-05-17 | 1 | -0/+21 |
| | |||||
* | recursive memory operations now possible | Bryan Helmkamp | 2009-05-17 | 6 | -6/+24 |
| | | | | | | Conflicts: lib/arel/algebra/relations/relation.rb | ||||
* | most in memory operations save join and group | Bryan Helmkamp | 2009-05-17 | 7 | -4/+71 |
| | | | | | | | | | | | | | 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 engine | Nick Kallen | 2009-05-17 | 2 | -0/+7 |
| | |||||
* | join sql stuff moved into sql adapter | Bryan Helmkamp | 2009-05-17 | 2 | -8/+24 |
| | | | | | | | | | 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 polymorphism | Bryan Helmkamp | 2009-05-17 | 1 | -6/+30 |
| | | | | | | | | Conflicts: lib/arel/algebra/primitives/attribute.rb lib/arel/algebra/primitives/expression.rb spec/arel/unit/primitives/expression_spec.rb | ||||
* | consolidated files | Bryan Helmkamp | 2009-05-17 | 15 | -108/+83 |
| | | | | | | | | | | | | | | 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 structures | Bryan Helmkamp | 2009-05-17 | 17 | -19/+119 |
| | | | | | | | | | | 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 |