Skip to content

How to migrate from selectSource to selectCursor? #1

Description

@dnikolovv

That may be a dumb question, but I've struggled with it for an embarrassingly long time now.

We have a Pool SqlBackend in the environment and queries such as

query :: ConduitT () Thing (ReaderT SqlBackend m) ()

that work fine using selectSource.

When I switch from selectSource to selectCursor, I get the following error

Could not deduce (BackendCompatible (RawPostgresql SqlBackend) SqlBackend)

I assume there's a very straightforward way of fixing this since no one has asked. It's definitely not one of the 40 ways I tried today though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions