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

feat: support native asyncpg connection pools #1182

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

jackwotherspoon
Copy link
Collaborator

@jackwotherspoon jackwotherspoon commented Oct 25, 2024

As of asyncpg v0.30.0, asyncpg native connection pools now support
a creation function (callable) via its connect argument, similar to
SQLAlchemy's async_creator argument to generate connections.

Adding integration test and usage samples to README.

Also bumping asyncpg min supported version in setup.py to 0.30.0
to force supported version for this feature.

Closes #1180

@jackwotherspoon jackwotherspoon self-assigned this Oct 25, 2024
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner October 25, 2024 13:48
@jackwotherspoon
Copy link
Collaborator Author

cc @d1manson if you want to let me know if this looks good to you? 😄

@jackwotherspoon jackwotherspoon merged commit eb95a9d into main Oct 25, 2024
15 checks passed
@jackwotherspoon jackwotherspoon deleted the asyncpg-native-pool branch October 25, 2024 19:38
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.

asyncpg pool support improved
3 participants