aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/primitives
Commit message (Collapse)AuthorAgeFilesLines
* added attribute.eq(nil)Nick Kallen2008-03-161-1/+1
| | | | - produces attribute IS NULL
* allowing string passthrough for order clausesNick Kallen2008-03-161-7/+7
|
* added support for `attribute IN ...` and `attribute BETWEEN ...`Nick Kallen2008-03-162-0/+6
| | | | | - IN and BETWEEN are chosen depending on the type of the second operand - ranges (1..2), arrays ([1,2,3]), and relations ("SELECT * ...") are all supported
* renamed operatorsNick Kallen2008-03-161-5/+5
| | | | | | - equals / eq - greater_than / gt - etc.
* renamed strategy to formatterNick Kallen2008-03-163-7/+7
|
* properly quoting array valuesNick Kallen2008-03-161-2/+2
|
* renamed sql formatting strategies to correspond with sql grammar rule names ↵Nick Kallen2008-03-132-2/+2
| | | | in the mysql bnf
* - renamed scalar to valueNick Kallen2008-03-121-3/+3
| | | | - added better test coverage and documentation of binary spec #to_sql
* renamed strategy method to formatNick Kallen2008-03-112-5/+9
| | | | | | - strategy (the method on scalar and attribute) is a complex double-dispatching scheme to format (to_sql) a scalar in the light of the particular attribute; that is, it casts strings to integers if the column is int, etc.
* implemented hashing macro; implemented custom matcher testing this macroNick Kallen2008-03-111-4/+1
|
* scalars are now lifted; the heavy lifting is done by the operations on ↵Nick Kallen2008-03-021-0/+25
| | | | relation (select, join, etc.)
* introduced engine dependency for sql strategiesNick Kallen2008-03-021-0/+1
| | | | - hacked in default engine for scalars -- BAD
* new concept of session boundariesNick Kallen2008-03-021-4/+1
|
* quoting issuesNick Kallen2008-02-242-6/+14
|
* organized congruence stuff in attributeNick Kallen2008-02-162-12/+19
|
* attribute is now a concrete ancestor of expression. seems logical.Nick Kallen2008-02-162-24/+17
|
* rename substitute to bind since it 'binds' an object to a new relation.Nick Kallen2008-02-112-3/+3
|
* removing code complexity concerning attribute lookup.Nick Kallen2008-02-112-5/+8
|
* cleaning up code and adding test coverage for attribute and expression.Nick Kallen2008-02-042-12/+20
|
* this is very messy but it is finally close to feature-completeNick Kallen2008-02-032-8/+71
|
* i know it doesn't work but need to anchor here...Nick Kallen2008-02-032-42/+7
|
* completed initial functionality for joining with aggregation (the meaning of ↵Nick Kallen2008-01-212-7/+25
| | | | which is joining on a subselect/derived table); the big change is the introduction of a #projections protected method; this is a private version of #attributes which preserves implementation information (e.g., the name of the function called)
* adding grouping functionality; added some dummy code ("Schmoin") for ↵Nick Kallen2008-01-162-7/+18
| | | | experimenting with aggregate joins. need to resolve the ambiguity in the #as operator between (SELECT * FROM foo AS bar) vs. (SELECT * FROM foo) AS bar
* Remove ActiveRelation sub-modules and refactor specsBryan Helmkamp2008-01-142-84/+78
|
* experimenting with strategy pattern rather than conditional; not as terse, ↵Nick Kallen2008-01-132-8/+4
| | | | nor transparent, but i still feel it's better
* removed support for scalar select (will return later); added support for ↵Nick Kallen2008-01-131-2/+2
| | | | aliased tables
* experimenting with new aliasing terminology and interfaceNick Kallen2008-01-121-1/+1
|
* aliasing of relationsNick Kallen2008-01-121-3/+3
|
* bug with aggregation to_SqlNick Kallen2008-01-121-1/+1
|
* added aggregationsNick Kallen2008-01-122-0/+106