aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* string passthrough for joinsNick Kallen2008-04-114-11/+34
|
* string passthrough for joinsNick Kallen2008-04-119-23/+32
|
* removed spurious calls to bindNick Kallen2008-04-112-5/+5
|
* removed binding for attributes and predicatesNick Kallen2008-04-116-32/+19
|
* removed bind for insertion and updationNick Kallen2008-04-116-14/+14
|
* refactored bind for orderNick Kallen2008-04-113-3/+4
|
* moved bind to factory of selectNick Kallen2008-04-118-33/+28
|
* added attribute.eq(nil)Nick Kallen2008-03-1610-11/+45
| | | | - produces attribute IS NULL
* test organizationNick Kallen2008-03-161-4/+4
|
* projections now support string passthroughNick Kallen2008-03-165-22/+61
| | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved
* nested orderingsNick Kallen2008-03-166-14/+36
|
* allowing string passthrough for order clausesNick Kallen2008-03-167-47/+96
|
* added support for `attribute IN ...` and `attribute BETWEEN ...`Nick Kallen2008-03-1612-71/+126
| | | | | - 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-168-28/+28
| | | | | | - equals / eq - greater_than / gt - etc.
* formatting insert and update statementsNick Kallen2008-03-168-45/+110
| | | | - values need to be coerced to the type corresponding to the column
* renamed strategy to formatterNick Kallen2008-03-1612-21/+21
|
* properly quoting array valuesNick Kallen2008-03-1615-36/+89
|
* js/nk - fixed hashingNick Kallen2008-03-153-7/+11
|
* annotated abstract methods on relationNick Kallen2008-03-132-6/+16
|
* annotated abstractionNick Kallen2008-03-136-5/+9
| | | | | - in compound - created superclass for the create/insert/update write operations, marked :call as abstract
* added abstract declarationNick Kallen2008-03-136-18/+22
|
* renamed sql formatting strategies to correspond with sql grammar rule names ↵Nick Kallen2008-03-135-26/+25
| | | | in the mysql bnf
* - renamed scalar to valueNick Kallen2008-03-1211-62/+98
| | | | - added better test coverage and documentation of binary spec #to_sql
* test coverage of #prefix_for on join.Nick Kallen2008-03-128-11/+37
| | | | | - 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-123-5/+10
| | | | better coverage though i dislike the strategy
* renamed strategy method to formatNick Kallen2008-03-116-16/+21
| | | | | | - 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.
* refactored session's interaction with engine/connectionNick Kallen2008-03-1112-16/+113
| | | | | - follows law of demeter - Table.engine uses AR::Base adapter
* implemented hashing macro; implemented custom matcher testing this macroNick Kallen2008-03-119-14/+47
|
* basic functionality for simplest active record find(id)Nick Kallen2008-03-053-11/+31
| | | | - messy code, to be cleaned up this weekend
* scalars are now lifted; the heavy lifting is done by the operations on ↵Nick Kallen2008-03-0221-75/+100
| | | | relation (select, join, etc.)
* introduced engine dependency for sql strategiesNick Kallen2008-03-0217-38/+74
| | | | - hacked in default engine for scalars -- BAD
* new concept of session boundariesNick Kallen2008-03-0223-75/+162
|
* quoting issuesNick Kallen2008-02-2417-349/+93
|
* renamed attribute to operand per josh's suggestionNick Kallen2008-02-242-23/+29
|
* Introduced concept of session. It does not yet support multiple databases, ↵Nick Kallen2008-02-2313-70/+189
| | | | nor transactions, but it's a start!
* updating functionalityNick Kallen2008-02-231-0/+17
|
* updating functionalityNick Kallen2008-02-231-0/+27
|
* added primitive update functionalityNick Kallen2008-02-232-1/+61
|
* organizing tests into unit/integrationNick Kallen2008-02-2318-17/+18
|
* extracted conditionals concerning the "externalizing" of relations under a join.Nick Kallen2008-02-187-33/+46
|
* made descend public; added test coverage for it; tests for qualify are now ↵Nick Kallen2008-02-1816-29/+61
| | | | in terms of descend
* rename __collect__ to descend since the double underscores were ugly.Nick Kallen2008-02-1811-22/+22
|
* adding support for scalar selectsNick Kallen2008-02-163-3/+9
|
* introduced __collect__, an internal enumerating operator. This is a map down ↵Nick Kallen2008-02-1613-34/+61
| | | | the tree representing the relation. Monadic map to be precise
* cleanupNick Kallen2008-02-1611-80/+94
|
* organized congruence stuff in attributeNick Kallen2008-02-163-19/+28
|
* more test coverageNick Kallen2008-02-166-48/+69
|
* white box testingNick Kallen2008-02-161-17/+0
|
* attribute is now a concrete ancestor of expression. seems logical.Nick Kallen2008-02-164-25/+24
|