mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
Python: Model pymongo.mongo_client.MongoClient
This commit is contained in:
@@ -15,6 +15,10 @@ private module NoSql {
|
|||||||
/** Gets a reference to `pymongo.MongoClient` */
|
/** Gets a reference to `pymongo.MongoClient` */
|
||||||
private API::Node pyMongo() {
|
private API::Node pyMongo() {
|
||||||
result = API::moduleImport("pymongo").getMember("MongoClient").getReturn()
|
result = API::moduleImport("pymongo").getMember("MongoClient").getReturn()
|
||||||
|
or
|
||||||
|
// see https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient
|
||||||
|
result =
|
||||||
|
API::moduleImport("pymongo").getMember("mongo_client").getMember("MongoClient").getReturn()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Gets a reference to `flask_pymongo.PyMongo` */
|
/** Gets a reference to `flask_pymongo.PyMongo` */
|
||||||
|
|||||||
Reference in New Issue
Block a user