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

Surface max_lifetime connection option #475

Closed
Sytten opened this issue Jan 21, 2022 · 1 comment · Fixed by #493
Closed

Surface max_lifetime connection option #475

Sytten opened this issue Jan 21, 2022 · 1 comment · Fixed by #493
Assignees
Milestone

Comments

@Sytten
Copy link
Contributor

Sytten commented Jan 21, 2022

It is missing from the abstraction over sqlx, but is an important thing (specially for serverless)

@billy1624
Copy link
Member

Hey @Sytten, thanks for pointing that out. We can add that, in the meantime you can use one of from_sqlx_* conversion method to setup the connection with max_lifetime config.

REF: https://docs.rs/sqlx/latest/sqlx/pool/struct.PoolOptions.html#method.max_lifetime

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 a pull request may close this issue.

2 participants