aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/sql.rb
Commit message (Collapse)AuthorAgeFilesLines
* projections now support string passthroughNick Kallen2008-03-161-1/+5
| | | | - there is a weird inconsistency in where bind is called on values; this needs to be resolved
* allowing string passthrough for order clausesNick Kallen2008-03-161-1/+10
|
* added support for `attribute IN ...` and `attribute BETWEEN ...`Nick Kallen2008-03-161-5/+9
| | | | | - 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
* properly quoting array valuesNick Kallen2008-03-161-3/+9
|
* annotated abstractionNick Kallen2008-03-131-2/+3
| | | | | - in compound - created superclass for the create/insert/update write operations, marked :call as abstract
* added abstract declarationNick Kallen2008-03-131-0/+2
|
* renamed sql formatting strategies to correspond with sql grammar rule names ↵Nick Kallen2008-03-131-14/+13
| | | | in the mysql bnf
* - renamed scalar to valueNick Kallen2008-03-121-7/+7
| | | | - added better test coverage and documentation of binary spec #to_sql
* renamed strategy method to formatNick Kallen2008-03-111-7/+7
| | | | | | - 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.
* scalars are now lifted; the heavy lifting is done by the operations on ↵Nick Kallen2008-03-021-1/+1
| | | | relation (select, join, etc.)
* introduced engine dependency for sql strategiesNick Kallen2008-03-021-7/+8
| | | | - hacked in default engine for scalars -- BAD
* new concept of session boundariesNick Kallen2008-03-021-1/+2
|
* quoting issuesNick Kallen2008-02-241-5/+18
|
* Introduced concept of session. It does not yet support multiple databases, ↵Nick Kallen2008-02-231-1/+1
| | | | nor transactions, but it's a start!
* adding support for scalar selectsNick Kallen2008-02-161-2/+2
|
* completed initial functionality for joining with aggregation (the meaning of ↵Nick Kallen2008-01-211-4/+10
| | | | 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)
* experimenting with strategy pattern rather than conditional; not as terse, ↵Nick Kallen2008-01-131-0/+51
nor transparent, but i still feel it's better