-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add psycopg3 compat #863
Add psycopg3 compat #863
Conversation
5f8cf16
to
005c7f2
Compare
Coverage reportThe coverage rate went from
Diff Coverage details (click to unfold)procrastinate/init.py
procrastinate/exceptions.py
procrastinate/psycopg_connector.py
procrastinate/sql/init.py
|
procrastinate/psycopg3_connector.py
Outdated
return wrapped | ||
|
||
|
||
PERCENT_PATTERN = re.compile(r"%(?![\(s])") |
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.
Unused. Not sure if it's needed
Hello :) Ha, I had started doing the same thing on my side in an attempt to solve the sync/async issues (see https://github.com/procrastinate-org/procrastinate/pull/753/commits) I'm really thinking about doing a v1 and dropping all other connectors except psycopg3. It seems everyone is headed the same way :) No idea yet what the right approach would be though. |
Ah, didn't see it, my bad :) |
You couldn't have seen it, I had committed it but not pushed yet (I have after I saw your PR) Here's the diff between our 2 connectors: |
I think I'm leaning towards working with your PR first, maybe backporting some of my changes, and then do the big bang where I fix sync/async and remove other connectors in a different PR. |
Okay, as you prefer. |
4a41d97
to
8ebdfc0
Compare
fdecbb8
to
b1b43a0
Compare
Co-Authored-by: Aleksandr Shtaub <[email protected]> Co-Authored-by: Joachim Jablon <[email protected]>
3414e37
to
5f9e3af
Compare
5f9e3af
to
8dac6a8
Compare
8dac6a8
to
3a3095f
Compare
Given that it's (supposedly) not breaking anything, I'll merge and release. Feel free to report on issues you find once you start using it. |
A naive implementation of connector for psycopg3.
Basically, it's just a modified copy of current aiopg connector.
Successful PR Checklist: