-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Support postgresql+asyncpg schema for PostgresDsn #2567
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2567 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 5109 5109
Branches 1050 1050
=========================================
Hits 5109 5109
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
As we are already here... Can we add |
Certainly! I'm changing of the computer, if can waiting for a few days until finish my setup and implement it. :D |
Hi @Kludex, I added pg8000 here. :) |
Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probably rebase on master too
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
…o postgres_asyncpg
Hi @PrettyWood, can you check if I did right? I'm not confident that if my laptop migration didn't mess something. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion for the change file to use ` and present. LGTM otherwise for the patch :)
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
Thanks! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM.
|
please update. |
Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
I did. Thanks, @samuelcolvin. :) |
tests/test_networks.py
Outdated
| 'postgresql+asyncpg://user:pass@localhost:5432/app', | ||
| 'postgresql+pg8000://user:pass@localhost:5432/app', | ||
| 'postgresql+psycopg2cffi://user:pass@localhost:5432/app', | ||
| 'postgresql+py-postgresql://user:pass@localhost:5432/app', | ||
| 'postgresql+pygresql://user:pass@localhost:5432/app', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All those tests would already be valid without your PR. You probably want to parametrize test_postgres_dsns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that but I'm sure if my implementation was good. It's wonderful anyone can review it. :)
|
Please update and rebase/merge with master for CI to run properly. Sorry for reaching out so late. Thanks! |
|
@PrettyWood, can you check if I rebased correctly? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Added suport to postgresql async driver * Added postgres+asyncpg in the doc. * Added changes file * Added postgresql+pg8000 schema * ran make format * Update docs/usage/types.md Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com> * Changed from schema to scheme Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> * fixed typo scheme * fixed merge schema * changed to one line description Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> * added others DBAPI dialects. * Added two # by PrettyWood Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> * fix typo by PrettyWood Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> * Fixed typo by PrettyWood Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> * added postgresql+psycopg2 in changes dir * Fixed typo by @samuelcolvin Co-authored-by: Samuel Colvin <samcolvin@gmail.com> * docs: fix typo * chore: sort alphabetically Co-authored-by: Fernando Ike <fernando.ike@maburix.com> Co-authored-by: Stephen Brown II <Stephen.Brown2@gmail.com> Co-authored-by: Eric Jolibois <em.jolibois@gmail.com> Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
Change Summary
SQLAchemy 1.4 added alpha support to async calls. The support to PostgreSQL needs to add asyncpg in the schema, e.g.:
postgresql+asyncpg://scott:tiger@localhost/testRelated issue number
#2545
Closes #2679
Checklist
changes/<pull request or issue id>-<github username>.mdfile added describing change(see changes/README.md for details)