Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | moved bind to factory of select | Nick Kallen | 2008-04-11 | 3 | -17/+8 |
| | |||||
* | added attribute.eq(nil) | Nick Kallen | 2008-03-16 | 8 | -7/+19 |
| | | | | - produces attribute IS NULL | ||||
* | projections now support string passthrough | Nick Kallen | 2008-03-16 | 2 | -3/+7 |
| | | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved | ||||
* | nested orderings | Nick Kallen | 2008-03-16 | 5 | -14/+10 |
| | |||||
* | allowing string passthrough for order clauses | Nick Kallen | 2008-03-16 | 3 | -14/+23 |
| | |||||
* | added support for `attribute IN ...` and `attribute BETWEEN ...` | Nick Kallen | 2008-03-16 | 8 | -25/+44 |
| | | | | | - 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 operators | Nick Kallen | 2008-03-16 | 1 | -5/+5 |
| | | | | | | - equals / eq - greater_than / gt - etc. | ||||
* | formatting insert and update statements | Nick Kallen | 2008-03-16 | 4 | -14/+6 |
| | | | | - values need to be coerced to the type corresponding to the column | ||||
* | renamed strategy to formatter | Nick Kallen | 2008-03-16 | 11 | -18/+18 |
| | |||||
* | properly quoting array values | Nick Kallen | 2008-03-16 | 11 | -22/+39 |
| | |||||
* | 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 | 6 | -5/+9 |
| | | | | | - in compound - created superclass for the create/insert/update write operations, marked :call as abstract | ||||
* | added abstract declaration | Nick Kallen | 2008-03-13 | 5 | -10/+22 |
| | |||||
* | renamed sql formatting strategies to correspond with sql grammar rule names ↵ | Nick Kallen | 2008-03-13 | 5 | -26/+25 |
| | | | | in the mysql bnf | ||||
* | - renamed scalar to value | Nick Kallen | 2008-03-12 | 5 | -13/+13 |
| | | | | - added better test coverage and documentation of binary spec #to_sql | ||||
* | renamed strategy method to format | Nick Kallen | 2008-03-11 | 5 | -15/+19 |
| | | | | | | - 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 | 5 | -4/+20 |
| | | | | | - follows law of demeter - Table.engine uses AR::Base adapter | ||||
* | implemented hashing macro; implemented custom matcher testing this macro | Nick Kallen | 2008-03-11 | 5 | -10/+11 |
| | |||||
* | basic functionality for simplest active record find(id) | Nick Kallen | 2008-03-05 | 2 | -11/+25 |
| | | | | - messy code, to be cleaned up this weekend | ||||
* | scalars are now lifted; the heavy lifting is done by the operations on ↵ | Nick Kallen | 2008-03-02 | 13 | -48/+70 |
| | | | | relation (select, join, etc.) | ||||
* | introduced engine dependency for sql strategies | Nick Kallen | 2008-03-02 | 12 | -33/+43 |
| | | | | - hacked in default engine for scalars -- BAD | ||||
* | new concept of session boundaries | Nick Kallen | 2008-03-02 | 8 | -17/+53 |
| | |||||
* | quoting issues | Nick Kallen | 2008-02-24 | 11 | -70/+58 |
| | |||||
* | renamed attribute to operand per josh's suggestion | Nick Kallen | 2008-02-24 | 1 | -12/+13 |
| | |||||
* | Introduced concept of session. It does not yet support multiple databases, ↵ | Nick Kallen | 2008-02-23 | 7 | -27/+89 |
| | | | | nor transactions, but it's a start! | ||||
* | updating functionality | Nick Kallen | 2008-02-23 | 1 | -0/+17 |
| | |||||
* | added primitive update functionality | Nick Kallen | 2008-02-23 | 1 | -0/+1 |
| | |||||
* | 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 | 9 | -16/+8 |
| | | | | in terms of descend | ||||
* | rename __collect__ to descend since the double underscores were ugly. | Nick Kallen | 2008-02-18 | 11 | -22/+22 |
| | |||||
* | adding support for scalar selects | Nick Kallen | 2008-02-16 | 1 | -2/+2 |
| | |||||
* | introduced __collect__, an internal enumerating operator. This is a map down ↵ | Nick Kallen | 2008-02-16 | 13 | -34/+61 |
| | | | | the tree representing the relation. Monadic map to be precise | ||||
* | cleanup | Nick Kallen | 2008-02-16 | 5 | -19/+11 |
| | |||||
* | organized congruence stuff in attribute | Nick Kallen | 2008-02-16 | 2 | -12/+19 |
| | |||||
* | more test coverage | Nick Kallen | 2008-02-16 | 3 | -9/+10 |
| | |||||
* | attribute is now a concrete ancestor of expression. seems logical. | Nick Kallen | 2008-02-16 | 2 | -24/+17 |
| | |||||
* | 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 | 8 | -13/+13 |
| | |||||
* | aesthetic considerations | Nick Kallen | 2008-02-11 | 9 | -15/+29 |
| | |||||
* | removing code complexity concerning attribute lookup. | Nick Kallen | 2008-02-11 | 7 | -47/+12 |
| | |||||
* | cleaning up code and adding test coverage for attribute and expression. | Nick Kallen | 2008-02-04 | 2 | -12/+20 |
| | |||||
* | this is very messy but it is finally close to feature-complete | Nick Kallen | 2008-02-03 | 12 | -53/+121 |
| | |||||
* | i know it doesn't work but need to anchor here... | Nick Kallen | 2008-02-03 | 14 | -164/+129 |
| | |||||
* | 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 | 11 | -52/+78 |
| | | | | 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 | 9 | -16/+91 |
| | | | | 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 | 18 | -503/+471 |
| |