yesodweb / persistent

Persistence interface for Haskell allowing multiple storage methods.
MIT License
467 stars 297 forks source link

persistent-postgresql: add `createPostgresqlPoolTailored` function #1511

Closed ixmatus closed 1 year ago

ixmatus commented 1 year ago

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.

Before submitting your PR, check that you've:

After submitting your PR:

parsonsmatt commented 1 year ago

Can you repush to trigger CI? Not sure why it isn't going

ixmatus commented 1 year ago

@parsonsmatt I just re-pushed but that looks like it didn't trigger CI.

parsonsmatt commented 1 year ago

Sorry for the delay - released as persistent-postgresql-2.13.6