Skip to content

simplify withParams helpers #1

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

Closed
wants to merge 2 commits into from
Closed

simplify withParams helpers #1

wants to merge 2 commits into from

Conversation

robx
Copy link
Owner

@robx robx commented Jul 4, 2022

Makes the code a bit more concise, and maybe saves a bit of work.

Second part of haskellari#22, on top of haskellari#23. (Will probably need to refile this against haskellari/postgresql-libpq once 22 is done.)

robx added 2 commits July 4, 2022 10:08
Instead of building a list of 'Int' in the fold, and then mapping
'toEnum' over it, build a list of 'CInt' directly.
We encode various arrays of the same length through 'withArray'.
Each of these computes the length, so we might as well take the
length from one of these.
@robx
Copy link
Owner Author

robx commented Jan 24, 2023

This has been fixed upstream.

@robx robx closed this Jan 24, 2023
robx added a commit that referenced this pull request Mar 8, 2023
Avoid copies when passing binary parameters
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.

1 participant