Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove Setter.arraySetter #180

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

oyvindberg
Copy link
Contributor

@oyvindberg oyvindberg commented Oct 28, 2023

I want to interpolate in postgres arrays as parameters - not explode them as multiple parameters. It's basically impossible to implement support for Array columns with this implicit present.

Other libraries like anorm and doobie have settled on this distinction already, scala sequences are exploded in the sql and Arrays are passed right through (with the right typeclass instances, of course). I suggest we do the same for zio-jdbc.

This is of course a breaking change, but probably doesn't affect many people. The workaround will be to say myArray.toList or similar

@CLAassistant
Copy link

CLAassistant commented Oct 28, 2023

CLA assistant check
All committers have signed the CLA.

I want to interpolate in postgres arrays as parameters - not explode them as multiple parameters.
@adamgfraser adamgfraser merged commit 8d6722c into zio:main Oct 30, 2023
15 checks passed
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.

4 participants