On Thursday, August 4, 2016 at 7:23:08 AM UTC-7, Andrey Botalov wrote:
>
> I have a DB connection instantiated directly using TinyTDS:
>
> client = TinyTDS::Client.new(...)
>
> How can I pass that `client` to Sequel so that it will use it?
>

There's no API for that.  I think the best you could do would be to use 
:single_threaded=>true when connecting, then do:

DB.pool.instance_variable_set(:@conn, client)

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