long2ice / asyncmy

A fast asyncio MySQL/MariaDB driver with replication protocol support
https://github.com/long2ice/asyncmy
Apache License 2.0
230 stars 25 forks source link

Set globals required by PEP249 (DB API 2.0) #77

Open Cielquan opened 10 months ago

Cielquan commented 10 months ago

According to PEP249 there are some module global constants which "must be defined".

I came across this issue while looking for the parameter syntax used by asyncmy. Unfortunately neither asyncmy's docstrings nor type hints are shown for me in VSCode, while the syntax is mentioned there: https://github.com/long2ice/asyncmy/blob/dev/asyncmy/cursors.pyx#L171-L172

Maybe an example with parameters on the README would also be nice.