U da Man; Jeremy! Thx!

2015-11-11 19:02 GMT+01:00 Jeremy Evans <[email protected]>:

> On Wednesday, November 11, 2015 at 3:55:51 AM UTC-8, Tiago Cardoso wrote:
>>
>> Hello,
>>
>>
>> I would like to know whether there is the possibility to set the new
>> #send_timeout and #recv_timeout methods from the OCI8 client.
>>
>> These are getter and setter methods and are (as of latest version) not
>> passed to the initializer, which means, one has to have access to the raw
>> connection to set them before starting to trigger queries.
>>
>> As far as I know, Sequel lazy-loads connections to the pool and does not
>> allow one access to the raw connection. Is that in fact so? How could this
>> be made patchable?
>>
>
> In terms of a patch, you can just add calls to the setter inside
> Sequel::Oracle::Database#connect in the oracle adapter, if the
> :send_timeout or :recv_timeout options are given.
>
> Note that you already call the setters via an :after_connect proc:
>
>   DB = Sequel.connect('oracle://...', :after_connect=>{|c| c.send_timeout
> = 1; c.recv_timeout = 1})
>
> Sequel offers plenty of opportunities to access the raw connections, it
> doesn't try to hide them.  It's easy to jump from high level Sequel code to
> low-level code that deals directly with a connection.
>
> Thanks,
> Jeremy
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sequel-talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sequel-talk/5cfrqW0ftuM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sequel-talk.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to