Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | string passthrough for joins | Nick Kallen | 2008-04-11 | 3 | -4/+9 |
| | |||||
* | removed bind for insertion and updation | Nick Kallen | 2008-04-11 | 3 | -4/+4 |
| | |||||
* | refactored bind for order | Nick Kallen | 2008-04-11 | 2 | -2/+3 |
| | |||||
* | moved bind to factory of select | Nick Kallen | 2008-04-11 | 2 | -2/+3 |
| | |||||
* | added attribute.eq(nil) | Nick Kallen | 2008-03-16 | 1 | -1/+1 |
| | | | | - produces attribute IS NULL | ||||
* | projections now support string passthrough | Nick Kallen | 2008-03-16 | 1 | -2/+2 |
| | | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved | ||||
* | nested orderings | Nick Kallen | 2008-03-16 | 4 | -8/+10 |
| | |||||
* | allowing string passthrough for order clauses | Nick Kallen | 2008-03-16 | 1 | -6/+6 |
| | |||||
* | added support for `attribute IN ...` and `attribute BETWEEN ...` | Nick Kallen | 2008-03-16 | 1 | -9/+12 |
| | | | | | - 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 | ||||
* | formatting insert and update statements | Nick Kallen | 2008-03-16 | 2 | -4/+4 |
| | | | | - values need to be coerced to the type corresponding to the column | ||||
* | renamed strategy to formatter | Nick Kallen | 2008-03-16 | 4 | -5/+5 |
| | |||||
* | properly quoting array values | Nick Kallen | 2008-03-16 | 6 | -15/+14 |
| | |||||
* | js/nk - fixed hashing | Nick Kallen | 2008-03-15 | 2 | -3/+5 |
| | |||||
* | annotated abstract methods on relation | Nick Kallen | 2008-03-13 | 2 | -6/+16 |
| | |||||
* | annotated abstraction | Nick Kallen | 2008-03-13 | 4 | -3/+5 |
| | | | | | - in compound - created superclass for the create/insert/update write operations, marked :call as abstract | ||||
* | renamed sql formatting strategies to correspond with sql grammar rule names ↵ | Nick Kallen | 2008-03-13 | 2 | -10/+10 |
| | | | | in the mysql bnf | ||||
* | renamed strategy method to format | Nick Kallen | 2008-03-11 | 1 | -2/+2 |
| | | | | | | - 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/connection | Nick Kallen | 2008-03-11 | 4 | -0/+16 |
| | | | | | - follows law of demeter - Table.engine uses AR::Base adapter | ||||
* | implemented hashing macro; implemented custom matcher testing this macro | Nick Kallen | 2008-03-11 | 2 | -5/+1 |
| | |||||
* | scalars are now lifted; the heavy lifting is done by the operations on ↵ | Nick Kallen | 2008-03-02 | 5 | -19/+30 |
| | | | | relation (select, join, etc.) | ||||
* | introduced engine dependency for sql strategies | Nick Kallen | 2008-03-02 | 4 | -17/+16 |
| | | | | - hacked in default engine for scalars -- BAD | ||||
* | new concept of session boundaries | Nick Kallen | 2008-03-02 | 3 | -8/+18 |
| | |||||
* | quoting issues | Nick Kallen | 2008-02-24 | 4 | -6/+19 |
| | |||||
* | Introduced concept of session. It does not yet support multiple databases, ↵ | Nick Kallen | 2008-02-23 | 4 | -25/+48 |
| | | | | nor transactions, but it's a start! | ||||
* | updating functionality | Nick Kallen | 2008-02-23 | 1 | -0/+17 |
| | |||||
* | extracted conditionals concerning the "externalizing" of relations under a join. | Nick Kallen | 2008-02-18 | 5 | -18/+44 |
| | |||||
* | made descend public; added test coverage for it; tests for qualify are now ↵ | Nick Kallen | 2008-02-18 | 8 | -15/+8 |
| | | | | in terms of descend | ||||
* | rename __collect__ to descend since the double underscores were ugly. | Nick Kallen | 2008-02-18 | 10 | -19/+19 |
| | |||||
* | introduced __collect__, an internal enumerating operator. This is a map down ↵ | Nick Kallen | 2008-02-16 | 11 | -29/+51 |
| | | | | the tree representing the relation. Monadic map to be precise | ||||
* | cleanup | Nick Kallen | 2008-02-16 | 5 | -19/+11 |
| | |||||
* | more test coverage | Nick Kallen | 2008-02-16 | 3 | -9/+10 |
| | |||||
* | removing unneccessary tests now that attribute lookup is so simple | Nick Kallen | 2008-02-11 | 1 | -1/+0 |
| | |||||
* | rename substitute to bind since it 'binds' an object to a new relation. | Nick Kallen | 2008-02-11 | 4 | -7/+7 |
| | |||||
* | aesthetic considerations | Nick Kallen | 2008-02-11 | 9 | -15/+29 |
| | |||||
* | removing code complexity concerning attribute lookup. | Nick Kallen | 2008-02-11 | 5 | -42/+4 |
| | |||||
* | this is very messy but it is finally close to feature-complete | Nick Kallen | 2008-02-03 | 8 | -45/+42 |
| | |||||
* | i know it doesn't work but need to anchor here... | Nick Kallen | 2008-02-03 | 10 | -119/+120 |
| | |||||
* | filling out some pending specs | Nick Kallen | 2008-01-21 | 2 | -1/+4 |
| | |||||
* | joining on aggregations; this time where the aggregation is on the right. | Nick Kallen | 2008-01-21 | 5 | -18/+27 |
| | |||||
* | merging "schmoin" experiment with joining aggregations into regular "join" ↵ | Nick Kallen | 2008-01-21 | 4 | -6/+22 |
| | | | | functionality; half-way done... | ||||
* | completed initial functionality for joining with aggregation (the meaning of ↵ | Nick Kallen | 2008-01-21 | 8 | -41/+43 |
| | | | | 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 Kallen | 2008-01-16 | 6 | -9/+71 |
| | | | | 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 specs | Bryan Helmkamp | 2008-01-14 | 13 | -348/+324 |
| | |||||
* | strategy pattern | Nick Kallen | 2008-01-13 | 1 | -4/+4 |
| | |||||
* | experimenting with strategy pattern rather than conditional; not as terse, ↵ | Nick Kallen | 2008-01-13 | 4 | -8/+8 |
| | | | | nor transparent, but i still feel it's better | ||||
* | removed support for scalar select (will return later); added support for ↵ | Nick Kallen | 2008-01-13 | 8 | -14/+38 |
| | | | | aliased tables | ||||
* | removed to_sql invocation for joins in base.rb... unnecessary, but perhaps ↵ | Nick Kallen | 2008-01-13 | 1 | -1/+1 |
| | | | | confusing? | ||||
* | experimenting with new aliasing terminology and interface | Nick Kallen | 2008-01-12 | 3 | -11/+7 |
| | |||||
* | aliasing of relations | Nick Kallen | 2008-01-12 | 4 | -5/+30 |
| | |||||
* | added aggregations | Nick Kallen | 2008-01-12 | 2 | -61/+1 |
| |