aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* moved bind to factory of selectNick Kallen2008-04-112-4/+8
|
* added attribute.eq(nil)Nick Kallen2008-03-161-2/+24
| | | | - produces attribute IS NULL
* test organizationNick Kallen2008-03-161-4/+4
|
* projections now support string passthroughNick Kallen2008-03-161-9/+29
| | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved
* nested orderingsNick Kallen2008-03-161-0/+26
|
* allowing string passthrough for order clausesNick Kallen2008-03-163-30/+71
|
* added support for `attribute IN ...` and `attribute BETWEEN ...`Nick Kallen2008-03-164-46/+82
| | | | | - 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-165-19/+19
| | | | | | - equals / eq - greater_than / gt - etc.
* formatting insert and update statementsNick Kallen2008-03-163-30/+104
| | | | - values need to be coerced to the type corresponding to the column
* properly quoting array valuesNick Kallen2008-03-163-14/+29
|
* added abstract declarationNick Kallen2008-03-131-8/+0
|
* - renamed scalar to valueNick Kallen2008-03-125-46/+82
| | | | - added better test coverage and documentation of binary spec #to_sql
* test coverage of #prefix_for on join.Nick Kallen2008-03-127-9/+35
| | | | | - it delegates to the relation containing the attribute - if the relation containing the attribute is an alias, it returns the alias
* more inadequate testsNick Kallen2008-03-122-9/+12
|
* pending tests.Nick Kallen2008-03-122-3/+8
| | | | better coverage though i dislike the strategy
* refactored session's interaction with engine/connectionNick Kallen2008-03-116-12/+45
| | | | | - follows law of demeter - Table.engine uses AR::Base adapter
* implemented hashing macro; implemented custom matcher testing this macroNick Kallen2008-03-114-4/+36
|
* basic functionality for simplest active record find(id)Nick Kallen2008-03-051-0/+6
| | | | - messy code, to be cleaned up this weekend
* scalars are now lifted; the heavy lifting is done by the operations on ↵Nick Kallen2008-03-028-27/+30
| | | | relation (select, join, etc.)
* introduced engine dependency for sql strategiesNick Kallen2008-03-025-5/+31
| | | | - hacked in default engine for scalars -- BAD
* new concept of session boundariesNick Kallen2008-03-0215-58/+109
|
* quoting issuesNick Kallen2008-02-246-279/+35
|
* Introduced concept of session. It does not yet support multiple databases, ↵Nick Kallen2008-02-236-43/+100
| | | | nor transactions, but it's a start!
* updating functionalityNick Kallen2008-02-231-0/+27
|
* organizing tests into unit/integrationNick Kallen2008-02-2317-17/+17
|
* extracted conditionals concerning the "externalizing" of relations under a join.Nick Kallen2008-02-182-15/+2
|
* made descend public; added test coverage for it; tests for qualify are now ↵Nick Kallen2008-02-187-13/+53
| | | | in terms of descend
* adding support for scalar selectsNick Kallen2008-02-162-1/+7
|
* cleanupNick Kallen2008-02-166-61/+83
|
* organized congruence stuff in attributeNick Kallen2008-02-161-7/+9
|
* more test coverageNick Kallen2008-02-163-39/+59
|
* white box testingNick Kallen2008-02-161-17/+0
|
* attribute is now a concrete ancestor of expression. seems logical.Nick Kallen2008-02-162-1/+7
|
* removing unneccessary tests now that attribute lookup is so simpleNick Kallen2008-02-117-117/+29
|
* rename substitute to bind since it 'binds' an object to a new relation.Nick Kallen2008-02-116-30/+30
|
* removing code complexity concerning attribute lookup.Nick Kallen2008-02-117-60/+56
|
* nk - missing file?Nick Kallen2008-02-041-1/+13
|
* cleaning up code and adding test coverage for attribute and expression.Nick Kallen2008-02-045-55/+127
|
* this is very messy but it is finally close to feature-completeNick Kallen2008-02-035-52/+59
|
* i know it doesn't work but need to anchor here...Nick Kallen2008-02-0312-185/+175
|
* cleanupNick Kallen2008-01-272-11/+14
|
* filling out some pending specsNick Kallen2008-01-214-21/+19
|
* joining on aggregations; this time where the aggregation is on the right.Nick Kallen2008-01-211-11/+39
|
* merging "schmoin" experiment with joining aggregations into regular "join" ↵Nick Kallen2008-01-213-14/+54
| | | | functionality; half-way done...
* completed initial functionality for joining with aggregation (the meaning of ↵Nick Kallen2008-01-217-40/+74
| | | | 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-166-6/+78
| | | | 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
* Removed dupe specBryan Helmkamp2008-01-141-18/+0
|
* Remove ActiveRelation sub-modules and refactor specsBryan Helmkamp2008-01-1420-538/+568
|
* experimenting with strategy pattern rather than conditional; not as terse, ↵Nick Kallen2008-01-131-0/+3
| | | | nor transparent, but i still feel it's better
* removed support for scalar select (will return later); added support for ↵Nick Kallen2008-01-134-9/+41
| | | | aliased tables