2008-03-12 02:22:26 -04:00
todo:
2008-04-18 22:00:56 -04:00
- incorporate linq functionality/terminology
- then_by (ordering)
- reverse
- any/all
- where
2008-04-13 20:03:03 -04:00
- fix complex joining cases:
- extract adapters
2008-03-12 02:22:26 -04:00
- cache expiry on write
2008-04-13 20:03:03 -04:00
- rewrite of arecord querycache test in light of this
2008-03-12 02:22:26 -04:00
done:
2008-04-15 01:24:15 -04:00
- mock out database
2008-03-12 02:22:26 -04:00
. Relation <=> Relation -> InnerJoinOperation
. Relation << Relation -> LeftOuterJoinOperation
. InnerJoinOperation.on(*Predicate) -> InnerJoinRelation
. LeftOuterJoinOperation.on(*Predicate) -> LeftOuterJoinRelation
. Relation[Symbol] -> Attribute
. Relation[Range] -> Relation
. Attribute == Attribute -> EqualityPredicate
. Attribute >= Attribute -> GreaterThanOrEqualToPredicate
. Relation.include?(Column) -> Predicate
. Relation.project(*Column) -> ProjectionRelation
. Relation.select(*Predicate) -> SelectionRelation
. Relation.order(*Column) -> OrderRelation
. #to_sql
. Remove Builder
. Namespace
. Audit SqlAlchemy for missing features
- Generalized denormalizations on any aggregation (count, yes, but also max, min, average)
- Remove operator overloading of << and <=> for joins. Make it just foo.join(bar) and foo.outer_join(bar).
2008-03-16 19:17:13 -04:00
- Remove operator overloading of == for predicates. make it a.eq(b) (note lack of question mark).
2008-03-12 02:22:26 -04:00
- hookup more predicates (=, <=, =>)
- get some basic aggregations working: users.project(user[:points].max)
- Alias Table Names
- When joining with any sort of aggregation, it needs to be a nested select
2008-03-13 02:31:18 -04:00
- get a value select working: users.project(users[:name], addresses.select(addresses[:user_id] == users[:id]).project(addresses[:id].count))
2008-03-12 02:22:26 -04:00
- Session
2008-03-13 02:31:18 -04:00
- sublimate values to deal with the fact that they must be quoted per engine
2008-03-12 02:22:26 -04:00
- clean-up singleton monstrosity
- extract hashing module
- hash custom matcher
- make session engine stuff follow laws of demeter - currently doing some odd method chaining? rethink who is responsible for what
- session just calls execute, passing in a connection; by default it gets a connection from the relation.
2008-03-16 18:41:27 -04:00
- #formatter is now on value, attribute and relation; you must admit it's name is confusing given that e.g., relation already has a formatter (Sql::Relation) ... should it be called predicate formatter? operand1.to_sql(operand2.predicate) maybe prefer operand1.cast(operand2) or project or in light of
2008-03-12 02:39:40 -04:00
- renamed to #format: operand1.format(operand2)
2008-03-15 21:37:47 -04:00
- rename sql strategies
2008-03-16 20:27:40 -04:00
- need to_sql for ranges
2008-03-16 20:49:06 -04:00
- {:conditions=>{:id=>2..3}}
- nested orderings
- string passthrough
- conditions
- orderings
- relation inclusion when given an array (1,2,3,4) should quote the elements using the appropriate quoting formatter taken from the attribute
- descend on array, along with bind written in terms of it
2008-04-11 18:22:22 -04:00
- re-evaluate bind -- does bind belong inside the relation / predicate classes or in the factory methods?
2008-04-12 18:56:07 -04:00
- string passthrough:
:joins=>"INNER JOIN posts ON comments.post_id = posts.id"
2008-04-12 20:33:56 -04:00
- finish pending tests
- test relation, table reset
2008-04-12 20:45:36 -04:00
- test Value, in particular bind.
2008-04-13 20:03:03 -04:00
- test blank checks in relation.rb
2008-04-18 17:53:02 -04:00
- rename active_relation to arel
2008-04-11 18:22:22 -04:00
icebox:
- #bind in Attribute and Expression should be doing a descend?
- try to make aggegration testing in join spec to be a bit more unit-like
2008-04-13 20:03:03 -04:00
- standardize quoting
- use strings everywhere, not symbols ?
- "unit" test sql strategies
- use real world examples, so they should be like a tutorial.
- rename the tion (Selection) classes so that words that don't end in tion don't seem inconsistent