You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2021. It is now read-only.
I'm aware that async-postgres is still experimental, but I just thought I would report that it currently doesn't successfully hook into the Sequel Postgres adapter. The following script executes in 10 seconds:
ENV["NO_SEQUEL_PG"]="1"# don't activate the sequel_pg gem if it's installedrequire"async"require"async/postgres"require"sequel"DB=Sequel.postgres("postgres")Async.rundo |task|
task.asyncdoDB.get{pg_sleep(5)}endtask.asyncdoDB.get{pg_sleep(5)}endend
I was looking at Sequel::Postgres, but it's fairly complex due to supporting different versions of the pg gem, along with postgres-pr and the additional sequel_pg gem, so I couldn't really find what has to be overridden.