Skip to content

sqlx-macros: Explicitly close QueryData db connections #1834

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

Closed
wants to merge 1 commit into from
Closed

sqlx-macros: Explicitly close QueryData db connections #1834

wants to merge 1 commit into from

Conversation

kevinji
Copy link

@kevinji kevinji commented Apr 26, 2022

Per the documentation for connection.close, calling close() allows the db to clean up the connection faster.

@abonander
Copy link
Collaborator

We're actually planning on keeping a single database connection open for all macro invocations: #1782

@kevinji
Copy link
Author

kevinji commented Apr 26, 2022

Oh gotcha, do you want to close this in favor of that PR then?

@abonander
Copy link
Collaborator

Yeah, I think so.

@abonander abonander closed this May 2, 2022
@kevinji kevinji deleted the close-db-conns branch May 2, 2022 20:31
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.

2 participants