oyvindberg / typo

Typed Postgresql integration for Scala. Hopes to avoid typos
https://oyvindberg.github.io/typo/
MIT License
101 stars 11 forks source link

Support doobie 1.0.0-RC6 #141

Open kolemannix opened 1 month ago

kolemannix commented 1 month ago

Tracking issue for Doobie rc6 support

kolemannix commented 1 month ago

Looks like we should wait for RC7: https://github.com/typelevel/doobie/issues/2104

oyvindberg commented 1 month ago

Not sure we need to do anything? Typo skips all the auto-derive issues with Doobie by reimplementing the macros. As long as you inline implicits as well, even the implicits machinery is skipped

kolemannix commented 1 month ago

If there are no other changes, then I guess not! I wasn't sure if the improvements to the underlying jdbc type stuff (vendor column type name on Get/Put) had an impact on what typo is doing, or could now do.

Also unsure if its binary-compatible with the previous release candidate

jatcwang commented 3 weeks ago

Hi I didn't know typo integrates with doobie 😄 I'd recommend upgrading directly to RC7 when it's ready, since there are major issues with RC6 derivation when mixing derivation and explicit instances. RC7 isn't binary compatible with RC6, which itself isn't bin compat with previous RC releases.

oyvindberg commented 3 weeks ago

@jatcwang try it out when you have the chance! it makes for a fantastic story where you can get all the trivial stuff generated and guaranteed to be correct, while still being free to write code like you always have done.

I'll hold off for a while then. when RC7 is ready, typo will need a version bump for the DSL at least if it's not binary compatible. and take of any source-level breakage.