The error I get is occasionally. I have this code in an initializer
DB = Sequel.connect(ENV['DATABASE_URL'])

"PG::ConnectionBad: PQconsumeInput() server closed the connection 
unexpectedly 
This probably means the server terminated abnormally 
before or while processing the request."
laugardagur, 30. janúar 2021 kl. 20:20:20 UTC skrifaði Árni Gunnarsson:

> What is the recommended way of using Sequel with Rails?
> I've been using the `sequel-rails` gem and it works fine it seems, what I 
> notice quite often though is that it has to reconnect quite often.
> I've also seen the usage of `class User < Sequel::Model(DB[:users]);end`
>
> I really like Sequel and want to know the best way to use it with Rails.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/0941b667-670d-478d-af93-4999f28b5e60n%40googlegroups.com.

Reply via email to