Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Doesn't seem to work with Rails 4 #6

@ainar-g

Description

@ainar-g

Rails 4 seem to use the PG::Connection#connect method rather than PG#connect. If I add the following monkey-patch, the queries do seem to execute asynchronously:

module PG
  class Connection
    def self.connect(*args)
      Async::Postgres::Proxy.new(*args)
    end
  end
end

I can send a PR in a few weeks, if that's the way we want to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions