Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | removed bind for insertion and updation | Nick Kallen | 2008-04-11 | 6 | -14/+14 |
| | |||||
* | refactored bind for order | Nick Kallen | 2008-04-11 | 3 | -3/+4 |
| | |||||
* | moved bind to factory of select | Nick Kallen | 2008-04-11 | 8 | -33/+28 |
| | |||||
* | added attribute.eq(nil) | Nick Kallen | 2008-03-16 | 10 | -11/+45 |
| | | | | - produces attribute IS NULL | ||||
* | test organization | Nick Kallen | 2008-03-16 | 1 | -4/+4 |
| | |||||
* | projections now support string passthrough | Nick Kallen | 2008-03-16 | 5 | -22/+61 |
| | | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved | ||||
* | nested orderings | Nick Kallen | 2008-03-16 | 6 | -14/+36 |
| | |||||
* | allowing string passthrough for order clauses | Nick Kallen | 2008-03-16 | 7 | -47/+96 |
| | |||||
* | added support for `attribute IN ...` and `attribute BETWEEN ...` | Nick Kallen | 2008-03-16 | 12 | -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 operators | Nick Kallen | 2008-03-16 | 8 | -28/+28 |
| | | | | | | - equals / eq - greater_than / gt - etc. | ||||
* | formatting insert and update statements | Nick Kallen | 2008-03-16 | 8 | -45/+110 |
| | | | | - values need to be coerced to the type corresponding to the column | ||||
* | renamed strategy to formatter | Nick Kallen | 2008-03-16 | 12 | -21/+21 |
| | |||||
* | properly quoting array values | Nick Kallen | 2008-03-16 | 15 | -36/+89 |
| | |||||
* | js/nk - fixed hashing | Nick Kallen | 2008-03-15 | 3 | -7/+11 |
| | |||||
* | 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 | 6 | -18/+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 | 11 | -62/+98 |
| | | | | - added better test coverage and documentation of binary spec #to_sql | ||||
* | test coverage of #prefix_for on join. | Nick Kallen | 2008-03-12 | 8 | -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 tests | Nick Kallen | 2008-03-12 | 2 | -9/+12 |
| | |||||
* | pending tests. | Nick Kallen | 2008-03-12 | 3 | -5/+10 |
| | | | | better coverage though i dislike the strategy | ||||
* | renamed strategy method to format | Nick Kallen | 2008-03-11 | 6 | -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/connection | Nick Kallen | 2008-03-11 | 12 | -16/+113 |
| | | | | | - follows law of demeter - Table.engine uses AR::Base adapter | ||||
* | implemented hashing macro; implemented custom matcher testing this macro | Nick Kallen | 2008-03-11 | 9 | -14/+47 |
| | |||||
* | basic functionality for simplest active record find(id) | Nick Kallen | 2008-03-05 | 3 | -11/+31 |
| | | | | - 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 | 21 | -75/+100 |
| | | | | relation (select, join, etc.) | ||||
* | introduced engine dependency for sql strategies | Nick Kallen | 2008-03-02 | 17 | -38/+74 |
| | | | | - hacked in default engine for scalars -- BAD | ||||
* | new concept of session boundaries | Nick Kallen | 2008-03-02 | 23 | -75/+162 |
| | |||||
* | quoting issues | Nick Kallen | 2008-02-24 | 17 | -349/+93 |
| | |||||
* | renamed attribute to operand per josh's suggestion | Nick Kallen | 2008-02-24 | 2 | -23/+29 |
| | |||||
* | Introduced concept of session. It does not yet support multiple databases, ↵ | Nick Kallen | 2008-02-23 | 13 | -70/+189 |
| | | | | nor transactions, but it's a start! | ||||
* | updating functionality | Nick Kallen | 2008-02-23 | 1 | -0/+17 |
| | |||||
* | updating functionality | Nick Kallen | 2008-02-23 | 1 | -0/+27 |
| | |||||
* | added primitive update functionality | Nick Kallen | 2008-02-23 | 2 | -1/+61 |
| | |||||
* | organizing tests into unit/integration | Nick Kallen | 2008-02-23 | 18 | -17/+18 |
| | |||||
* | extracted conditionals concerning the "externalizing" of relations under a join. | Nick Kallen | 2008-02-18 | 7 | -33/+46 |
| | |||||
* | made descend public; added test coverage for it; tests for qualify are now ↵ | Nick Kallen | 2008-02-18 | 16 | -29/+61 |
| | | | | 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 | 3 | -3/+9 |
| | |||||
* | 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 | 11 | -80/+94 |
| | |||||
* | organized congruence stuff in attribute | Nick Kallen | 2008-02-16 | 3 | -19/+28 |
| | |||||
* | more test coverage | Nick Kallen | 2008-02-16 | 6 | -48/+69 |
| | |||||
* | white box testing | Nick Kallen | 2008-02-16 | 1 | -17/+0 |
| | |||||
* | attribute is now a concrete ancestor of expression. seems logical. | Nick Kallen | 2008-02-16 | 4 | -25/+24 |
| | |||||
* | removing unneccessary tests now that attribute lookup is so simple | Nick Kallen | 2008-02-11 | 8 | -118/+29 |
| | |||||
* | rename substitute to bind since it 'binds' an object to a new relation. | Nick Kallen | 2008-02-11 | 14 | -43/+43 |
| | |||||
* | aesthetic considerations | Nick Kallen | 2008-02-11 | 9 | -15/+29 |
| | |||||
* | removing code complexity concerning attribute lookup. | Nick Kallen | 2008-02-11 | 14 | -107/+68 |
| |