aio-libs / aiomysql

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

docs: Use context manager for cursor in pool example #820

Closed Nothing4You closed 2 years ago

Nothing4You commented 2 years ago

What do these changes do?

docs update

Are there changes in behavior for the user?

no

Related issue number

fixes #665

codecov[bot] commented 2 years ago

Codecov Report

Merging #820 (8e4c335) into master (b21f0ed) will increase coverage by 0.03%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
+ Coverage   92.58%   92.62%   +0.03%     
==========================================
  Files          38       38              
  Lines        5560     5560              
  Branches      941      941              
==========================================
+ Hits         5148     5150       +2     
+ Misses        324      322       -2     
  Partials       88       88              
Flag Coverage Δ
ubuntu-latest_3.10_mariadb-10.3 89.13% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.4 89.13% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.5 89.11% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.6 89.11% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.7 89.11% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.8 89.11% <ø> (ø)
ubuntu-latest_3.10_mysql-5.7 89.82% <ø> (ø)
ubuntu-latest_3.10_mysql-8.0 91.20% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.3 89.10% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.4 89.10% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.5 89.08% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.6 89.08% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.7 89.08% <ø> (ø)
ubuntu-latest_3.11-dev_mariadb-10.8 89.08% <ø> (ø)
ubuntu-latest_3.11-dev_mysql-5.7 89.78% <ø> (ø)
ubuntu-latest_3.11-dev_mysql-8.0 91.16% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.3 88.52% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.4 88.52% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.5 88.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.6 88.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.7 88.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.8 88.50% <ø> (ø)
ubuntu-latest_3.7_mysql-5.7 89.25% <ø> (ø)
ubuntu-latest_3.7_mysql-8.0 90.72% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.3 89.17% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.4 89.17% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.5 89.15% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.6 89.15% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.7 89.15% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.8 89.15% <ø> (ø)
ubuntu-latest_3.8_mysql-5.7 89.86% <ø> (ø)
ubuntu-latest_3.8_mysql-8.0 91.22% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.3 89.03% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.4 89.03% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.5 89.01% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.6 89.01% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.7 89.01% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.8 89.01% <ø> (ø)
ubuntu-latest_3.9_mysql-5.7 89.71% <ø> (ø)
ubuntu-latest_3.9_mysql-8.0 91.12% <ø> (+0.03%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_issues.py 86.30% <0.00%> (+0.63%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b21f0ed...8e4c335. Read the comment docs.