-
Notifications
You must be signed in to change notification settings - Fork 97
MySQL support #1312
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
base: master
Are you sure you want to change the base?
MySQL support #1312
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 |
Related to this discussion. Any help and feedback is welcome.