Skip to content

simplify withParams helpers#1

Closed
robx wants to merge 2 commits into
refactor-paramsfrom
tweak-params
Closed

simplify withParams helpers#1
robx wants to merge 2 commits into
refactor-paramsfrom
tweak-params

Conversation

@robx
Copy link
Copy Markdown
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
Copy Markdown
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