Hi Zach,

On Feb 26, 2007, at 3:15 PM, zdennis wrote:
>> I like Ernie's suggestion of a SqlStatement-like object, or even  
>> better,
>> settling on some duck-typing conventions for sql-like strings.
>>
>> SqlString < String could also hold its bind variables. The  
>> database adapter
>> could translate that to whatever native support for bound  
>> parameters, even
>> prepare and cache the statement.
>
> This sounds like a good idea. Can you guys expand on this more for how
> it'd handle queries in practice?

I pulled together my efforts from last year into a blog post:

http://www.opendarwin.org/~drernie/C499496031/E20070226153152/index.html

Not very complete, but hopefully it gives you a flavor of what I was  
attempting -- and how much I had to patch ActiveRecord to get the  
behavior I wanted.

Best,
-- Ernie P.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to