Skip to content

Commit a7170be

Browse files
committed
Python: Mention modeling of mysqlclient PyPI package
Just for completeness in terms of what we claim support for.
1 parent baf8d0a commit a7170be

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/codeql/support/reusables/frameworks.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Python built-in support
171171
mysql-connector-python, Database
172172
mysql-connector, Database
173173
MySQL-python, Database
174+
mysqlclient, Database
174175
psycopg2, Database
175176
sqlite3, Database
176177
cryptography, Cryptography library

python/ql/src/semmle/python/frameworks/MySQLdb.qll

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* Provides classes modeling security-relevant aspects of the `MySQL-python` PyPI package
3-
* (imported as `MySQLdb`).
2+
* Provides classes modeling security-relevant aspects of the `MySQL-python` and `mysqlclient` PyPI packages
3+
* (both imported as `MySQLdb`) -- the `mysqlclient` package is a fork of `MySQL-python`.
44
*
55
* See
66
* - https://mysqlclient.readthedocs.io/index.html
@@ -15,10 +15,13 @@ private import semmle.python.ApiGraphs
1515
private import semmle.python.frameworks.PEP249
1616

1717
/**
18-
* Provides models for the `MySQL-python` PyPI package (imported as `MySQLdb`).
18+
* Provides models for the `MySQL-python` and `mysqlclient` PyPI packages
19+
* (both imported as `MySQLdb`) -- the `mysqlclient` package is a fork of `MySQL-python`.
20+
*
1921
* See
2022
* - https://mysqlclient.readthedocs.io/index.html
2123
* - https://pypi.org/project/MySQL-python/
24+
* - https://pypi.org/project/mysqlclient/
2225
*/
2326
private module MySQLdb {
2427
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)