Skip to content

Upgrading to doobie 1.0.0-M4 (and Cats Effect 3)#28

Closed
hmemcpy wants to merge 1 commit intogaelrenoux:masterfrom
hmemcpy:doobie-ce-3.0
Closed

Upgrading to doobie 1.0.0-M4 (and Cats Effect 3)#28
hmemcpy wants to merge 1 commit intogaelrenoux:masterfrom
hmemcpy:doobie-ce-3.0

Conversation

@hmemcpy
Copy link
Copy Markdown
Contributor

@hmemcpy hmemcpy commented May 31, 2021

Fixes #27

The major change with doobie for CE3 is that Blocker is no longer a thing. I removed the Blocker, and all the tests seem to pass. I haven't changed any other interfaces.

@gaelrenoux
Copy link
Copy Markdown
Owner

Thanks for the help! I'm not a fan of upgrading to a milestone version, though. I get that upgrading to Cats-Effect 3 would be nice, but I'd rather wait for the 1.0.0. The milestones have been coming pretty fast, I assume it won't be too long.

@hmemcpy
Copy link
Copy Markdown
Contributor Author

hmemcpy commented Jun 12, 2021

Of course, no rush! I just tried to do the upgrade, since Blocker was no longer a thing, and I wanted to see how "bad" the upgrade was :)

The only thing I'm not sure about is whether wrapping it with ZIO.effectTotal is a good idea. Maybe effectBlocking instead, providing it the blocking env you already have?

@PawelJ-PL
Copy link
Copy Markdown

Maybe you could merge this into a separate branch and create a new milestone release for Tranzactio?

import izumi.reflect.Tag
import zio.blocking.Blocking
import zio.interop.catz._
import zio.interop.catz.implicits.rts
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid importing this implicit inside library. It will cause, that default Blocker and Clock will be used. This can cause various problems. E.g. I use https://kamon.io/ so I have to provide my own ExecutionContexts (also for Blocking) and with this import the instrumentation does not work. I think in the library it would be better to require Blocking and Clock to be provided and then use it as in this example: https://github.com/zio/interop-cats#async (see note https://github.com/zio/interop-cats#easier-imports-at-a-cost)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hmemcpy I created related MR in your repository: hmemcpy#1

@visox
Copy link
Copy Markdown

visox commented Aug 24, 2021

Hi, what is the state ? could really use the new version asap

@gaelrenoux-datadome
Copy link
Copy Markdown
Contributor

I'm on holiday for a few more days, and not in a great situation to code (kids around and stuff). I'll come back to this probably on the 4th of september (I don't think I'll have time before).

@gaelrenoux
Copy link
Copy Markdown
Owner

Replaced by #31 after rebasing on master and adding @PawelJ-PL's changes.

@gaelrenoux gaelrenoux closed this Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support doobie 1.0.0 (cats-effect 3 compatible)

5 participants