-
Notifications
You must be signed in to change notification settings - Fork 264
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