Conversation
|
I've got the tests running locally now. It's impressive that they're running. I've tried the playground too, and it seems to work well. I do get things like this printed out in the console: Do you see them too? |
Yes. This is just a warning and is harmless because I am using async with self.pool.acquire() as connection:
async with connection.cursor() as cursor:
await cursor.execute(query, args)
rows = await cursor.fetchall()
columns = (
[desc[0] for desc in cursor.description] # use only ticket from ticket$concert$concert$band_1 and it works
if cursor.description
else []
)
await connection.autocommit(True)
return [dict(zip(columns, row)) for row in rows]and it works for related columns like this Another option would be to use async with self.pool.acquire() as connection:
async with connection.cursor(aiomysql.DictCursor) as cursor:
await cursor.execute(query, args)
rows = await cursor.fetchall()
await connection.autocommit(True)
return rowsbut it doesn't work for related columns like this |
|
@dantownsend Have you perhaps considered merging this? If |
Related to this discussion. Any help and feedback is welcome.