1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

35 commits

Author SHA1 Message Date
Bryan Helmkamp
44743bed55 joining across engines in either direction
Conflicts:

	spec/arel/engines/memory/integration/joins/cross_engine_spec.rb
2009-05-17 16:14:28 -04:00
Bryan Helmkamp
7a51983efc initial implementation of cross-engine join
Conflicts:

	lib/arel/engines/memory/relations/array.rb
	lib/arel/engines/sql/primitives.rb
2009-05-17 16:12:06 -04:00
Bryan Helmkamp
07833d39c2 basic implementation of in memory insertions
Conflicts:

	lib/arel/engines/memory/relations.rb
2009-05-17 15:47:10 -04:00
Nick Kallen
20b28b441b using in memory relations as results from sql relation
Conflicts:

	lib/arel/algebra/primitives/expression.rb
	lib/arel/algebra/relations/relation.rb
2009-05-17 15:46:19 -04:00
Nick Kallen
2fe585328d performing in memory joins 2009-05-17 15:44:12 -04:00
Bryan Helmkamp
b7f58db57a better test ordering
Conflicts:

	doc/TODO
2009-05-17 15:44:03 -04:00
Bryan Helmkamp
8339f024c7 recursive memory operations now possible
Conflicts:

	lib/arel/algebra/relations/relation.rb
2009-05-17 15:42:42 -04:00
Nick Kallen
a7aacd2946 reorganizing tests 2009-05-17 15:36:05 -04:00
Bryan Helmkamp
9d77c08cf8 made block stuff read nicer
Conflicts:

	doc/TODO
2009-05-17 15:00:10 -04:00
Bryan Helmkamp
4e3c9a0130 most in memory operations save join and group
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
2009-05-17 14:58:46 -04:00
Bryan Helmkamp
892337509b removed function_sql in favor of polymorphism
Conflicts:

	lib/arel/algebra/primitives/attribute.rb
	lib/arel/algebra/primitives/expression.rb
	spec/arel/unit/primitives/expression_spec.rb
2009-05-17 14:46:08 -04:00
Bryan Helmkamp
bdca9ed42f moved sql related code to its own engine area
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
2009-05-17 14:24:06 -04:00
Bryan Helmkamp
2bbf8ca9d2 reorganized call
Conflicts:

	doc/TODO
	lib/arel/relations/relation.rb
	lib/arel/relations/writes/delete.rb
	lib/arel/relations/writes/insert.rb
	lib/arel/relations/writes/update.rb
	lib/arel/session.rb
	spec/arel/unit/relations/delete_spec.rb
	spec/arel/unit/relations/insert_spec.rb
	spec/arel/unit/relations/relation_spec.rb
	spec/arel/unit/relations/update_spec.rb
	spec/arel/unit/session/session_spec.rb
2009-05-17 13:58:29 -04:00
Bryan Helmkamp
e2661658a0 Update TODO 2008-05-27 21:59:18 -04:00
Bryan Helmkamp
aeb09afd73 AND/OR support for predicates 2008-05-27 21:56:38 -04:00
Nick Kallen
191b2b7b7e externalization now includes limits 2008-05-21 00:23:32 -07:00
Nick Kallen
78b5b57837 some convenience methods 2008-05-19 17:55:49 -07:00
Nick Kallen
518db17ca3 renamed ion classes 2008-05-19 13:57:21 -07:00
Nick Kallen
3eae3b08ee renamed select operation to where 2008-05-19 13:49:43 -07:00
Nick Kallen
724a268413 performance enhancing drugs 2008-05-17 20:24:22 -07:00
Nick Kallen
16730fdbd0 fixed defect in alias 2008-05-13 16:53:36 -07:00
Nick Kallen
85bc3b417d finally fixed table aliasing issues
- the solution is currently ugly, but i have an idea how to clean it up
2008-05-01 23:19:12 -07:00
Nick Kallen
3ae7a601e9 attribute disambiguation 2008-04-27 20:40:20 -07:00
Nick Kallen
4a6822d5e4 results of a select query are a hash indexed by attribute rather than string 2008-04-27 18:11:36 -07:00
Nick Kallen
9567f8e4e8 - new todo items
- alias to_sql to to_s
- added column_for to join (untested)
2008-04-19 20:40:47 -07:00
Nick Kallen
86885933c4 todos 2008-04-18 19:00:56 -07:00
Nick Kallen
2a9117d854 when ordering, the last order wins 2008-04-18 14:53:02 -07:00
Nick Kallen
d51139751e officially renamed active_relation to arel 2008-04-18 12:59:29 -07:00
Bryan Helmkamp
5a2d4f5475 Fake database implementation. MySQL not required to run the tests 2008-04-15 01:24:15 -04:00
Nick Kallen
4466409205 adjacency lists work
- implementation is a bit complex, but i can't think of anything simpler
2008-04-13 17:03:03 -07:00
Nick Kallen
2f9b70b617 better test coverage of relational operations with blank data 2008-04-12 17:45:36 -07:00
Nick Kallen
97f89cde2a tests of Value 2008-04-12 17:33:56 -07:00
Nick Kallen
6de1f350ce - string passthrough for joins
- blank checks
2008-04-12 15:56:07 -07:00
Nick Kallen
eee3a76616 string passthrough for joins 2008-04-11 15:22:22 -07:00
Nick Kallen
42c42bfa50 moved bind to factory of select 2008-04-11 13:47:06 -07:00