On Wednesday, April 24, 2019 at 7:51:59 AM UTC-7, My Nguyen wrote:
>
> Hi Jeremy, 
> We are migrating away from ActiveRecord in our Rails app, and we are 
> running into issues with transactional fixture in our tests. We think the 
> problem can be solved by sharing the same connection between Sequel and 
> ActiveRecord in test environment ( similar to the Capybara hack )
>
> Is there a way I could initialize a Sequel::Postgres::Database object from 
> a PG::Connection instead of a connection hash?
>

No.  Some people in the past have had success trying to make ActiveRecord 
use connection's from Sequel's connection pool, but it is not possible to 
go the other way, as Sequel uses a subclass of PG::Connection.

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