On Wednesday, April 18, 2018 at 2:33:37 AM UTC-7, [email protected] wrote:
>
>
>
> El miércoles, 18 de abril de 2018, 0:09:50 (UTC+2), Jeremy Evans escribió:
>
>> The main Sequel 5 changes are that Dataset#with_{fetch,numrows,autoid} 
>> need to be used now, because datasets are frozen and you can't modify the 
>> dataset itself.
>>
>> If you have specific questions about the mock adapter, please post them 
>> here.
>>
>
> I can't use with_fetch with proc for defining return data from query info.
>

Hmm, that works for me:

DB[:a].with_fetch(proc{|sql| {:sql=>sql}}).first
# SELECT * FROM a LIMIT 1
# => {:sql=>"SELECT * FROM a LIMIT 1"}

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to