aio-libs / aiomysql

aiomysql is a library for accessing a MySQL database from the asyncio
https://aiomysql.rtfd.io
MIT License
1.72k stars 254 forks source link

Implement 'read_timeout' parameter #974

Open aakulchyk opened 6 months ago

aakulchyk commented 6 months ago

What do these changes do?

Support 'read_timeout' parameter of the connection object from pymysql: https://pymysql.readthedocs.io/en/latest/modules/connections.html#module-pymysql.connections

Are there changes in behaviour for the user?

The connection will be closed if timeout is reached (same behaviour as in pymysql)

Related issue number

488

Checklist