-
Notifications
You must be signed in to change notification settings - Fork 262
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
Fix sqlalchemy default values for insert and update queries #266
Conversation
@@ -917,6 +1009,7 @@ async def run_database_queries(): | |||
async with database: | |||
|
|||
async def db_lookup(): | |||
|
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.
left \n
_result_processors = {} # type: dict | ||
|
||
|
||
class APGCompiler_psycopg2( |
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.
Seems strange to call this APGCompiler_psycopg2
, given that the db backend used for postgres in databases is asyncpg
, not psycopg2
.
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.
this is how aiopg calls it
https://github.com/encode/databases/blob/master/databases/backends/aiopg.py#L32#L35
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.
Right but that's because aiopg is just a wrapper around psycopg2, asyncpg is not.
This is what actually
aiopg
does https://github.com/aio-libs/aiopg/blob/master/aiopg/sa/engine.py#L17#L30Fixes #72
I think this solution is less tricky than #206