aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit
Commit message (Collapse)AuthorAgeFilesLines
* redesigned the way limit and offset workNick Kallen2008-04-113-15/+38
| | | | - was range now have special 'take' and 'skip' operations. (the terminology comes from linq)
* string passthrough for joinsNick Kallen2008-04-112-10/+21
|
* string passthrough for joinsNick Kallen2008-04-112-7/+13
|
* removed spurious calls to bindNick Kallen2008-04-112-5/+5
|
* removed binding for attributes and predicatesNick Kallen2008-04-113-23/+10
|
* removed bind for insertion and updationNick Kallen2008-04-113-10/+10
|
* refactored bind for orderNick Kallen2008-04-111-1/+1
|
* 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-115-11/+44
| | | | | - follows law of demeter - Table.engine uses AR::Base adapter
* implemented hashing macro; implemented custom matcher testing this macroNick Kallen2008-03-112-3/+9
|
* 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-024-5/+28
| | | | - hacked in default engine for scalars -- BAD
* new concept of session boundariesNick Kallen2008-03-0215-58/+109
|
* quoting issuesNick Kallen2008-02-245-27/+35
|
* Introduced concept of session. It does not yet support multiple databases, ↵Nick Kallen2008-02-234-23/+98
| | | | nor transactions, but it's a start!
* updating functionalityNick Kallen2008-02-231-0/+27
|
* organizing tests into unit/integrationNick Kallen2008-02-2317-0/+968