-
Notifications
You must be signed in to change notification settings - Fork 297
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
persistent-postgresql: add createPostgresqlPoolTailored
function
#1511
Conversation
This change adds a connection pool creation function that is just like the `createPostgresqlPoolModifiedWithVersion` function but that can take a custom `open'`-like connection-creation function. The motivation for this change is that we need to be able to customize the resource creation action dynamically at run-time.
This change alters the API surface (via addition) and, as-per `CONTRIBUTING.md`, requires a `C` bump.
... so that users can construct their own `open'`-like function.
... so users don't have to write their own.
75355e4
to
9788fad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me, though I do think the panoply of creation functions is getting a bit out of hand. I'll make a followup issue to refactor this and make an interface exposing a datatype-of-functions for these hooks.
Can you repush to trigger CI? Not sure why it isn't going |
As requested by @parsonsmatt.
@parsonsmatt I just re-pushed but that looks like it didn't trigger CI. |
Sorry for the delay - released as |
This change adds a connection pool creation function that is just like the
createPostgresqlPoolModifiedWithVersion
function but that can take a customopen'
-like connection-creation function.The motivation for this change is that we need to be able to customize the resource creation action dynamically at run-time.
Before submitting your PR, check that you've:
@since
declarations to the Haddockstylish-haskell
on any changed files..editorconfig
file for details)After submitting your PR:
(unreleased)
on the Changelog