ouch, that's seriously unpleasant syntax.should these be proxied by
methods in DataMapper so you could do DataMapper.query('SELECT.....")
for default repository?

Emma

Oh, and thanks to whoever updated the wiki :) you saved me 5 minutes!

On Mon, Dec 29, 2008 at 9:48 PM, Bernerd Schaefer <[email protected]> wrote:
>
>> I've header rumour of a query method in datamapper, but can't find
>> anything about it, and a grep of the dm-core doesn't reveal any such
>> method.
>
> You can do:
>
> results = repository(:default).adapter.query("SELECT...")
>
> You'll get back an array of open structs representing the returned data.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to