On Jan 3, 2006, at 12:12 PM, rcoder wrote:

> Below is just my 20-minute version -- consider it a source of ideas  
> for
> doing a more complete DSL, not a real library.
>
> With it, you can do something like the following:
>
> q = Query.new do
>   foo == 'bar'       => exact value
>   baz <=> (1..100)   => 'between'
>   woo =~ 'substri%'  => 'like'
>   fiz < 10           => lt, gt, leq, geq, etc., should all "just work"
> end
>
> q.to_sql =>
> ["foo = ? AND baz BETWEEN ? AND ? AND fiz < ?", ["bar", 1, 100, 10]]

Thanks rcoder-

	That will definitely help me move forward. I appreciate it.


Thanks-
-Ezra