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

Consider init-fn for next.jdbc.connection/component #237

Closed
seancorfield opened this issue Dec 7, 2022 · 0 comments
Closed

Consider init-fn for next.jdbc.connection/component #237

seancorfield opened this issue Dec 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@seancorfield
Copy link
Owner

Is your feature request related to a problem? Please describe.
It's quite common that folks might want a specific function to run against the database when the connection pool is first created/started. Provide a way to supply that.

Describe the solution you'd like
An optional argument to component that specifies a function that will be called at startup on the pooled datasource.

Describe alternatives you've considered
Writing your own Component to wrap ->pool and call init-fn directly if supplied.

@seancorfield seancorfield added the enhancement New feature or request label Dec 7, 2022
@seancorfield seancorfield self-assigned this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant