Nick Kallen
42c42bfa50
moved bind to factory of select
2008-04-11 13:47:06 -07:00
Nick Kallen
89b354bf97
added attribute.eq(nil)
...
- produces attribute IS NULL
2008-03-16 20:47:02 -07:00
Nick Kallen
cae95fc02a
projections now support string passthrough
...
- there is a weird inconsistency in where bind is called on values; this needs to be resolved
2008-03-16 17:49:06 -07:00
Nick Kallen
7bd0d63486
allowing string passthrough for order clauses
2008-03-16 17:27:40 -07:00
Nick Kallen
07f7f752fe
renamed operators
...
- equals / eq
- greater_than / gt
- etc.
2008-03-16 16:17:13 -07:00
Nick Kallen
af3d7c5193
formatting insert and update statements
...
- values need to be coerced to the type corresponding to the column
2008-03-16 16:14:02 -07:00
Nick Kallen
ed9c8d4d82
renamed strategy to formatter
2008-03-16 15:41:27 -07:00
Nick Kallen
1a6a3a1c6a
properly quoting array values
2008-03-16 15:40:15 -07:00
Nick Kallen
7f01134d1b
js/nk - fixed hashing
2008-03-15 18:37:47 -07:00
Nick Kallen
b1acebaaf0
- renamed scalar to value
...
- added better test coverage and documentation of binary spec #to_sql
2008-03-12 23:31:18 -07:00
Nick Kallen
181f28e2f9
pending tests.
...
better coverage though i dislike the strategy
2008-03-12 00:06:41 -07:00
Nick Kallen
8a62a733c1
renamed strategy method to format
...
- 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.
2008-03-11 23:39:40 -07:00
Nick Kallen
12ef6a5ad1
refactored session's interaction with engine/connection
...
- follows law of demeter
- Table.engine uses AR::Base adapter
2008-03-11 23:22:26 -07:00