mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Add oracledb model
This commit is contained in:
@@ -34,6 +34,7 @@ private import semmle.python.frameworks.MarkupSafe
|
||||
private import semmle.python.frameworks.Multidict
|
||||
private import semmle.python.frameworks.Mysql
|
||||
private import semmle.python.frameworks.MySQLdb
|
||||
private import semmle.python.frameworks.Oracledb
|
||||
private import semmle.python.frameworks.Peewee
|
||||
private import semmle.python.frameworks.Phoenixdb
|
||||
private import semmle.python.frameworks.Psycopg2
|
||||
|
||||
31
python/ql/lib/semmle/python/frameworks/Oracledb.qll
Normal file
31
python/ql/lib/semmle/python/frameworks/Oracledb.qll
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Provides classes modeling security-relevant aspects of the `oracledb` PyPI package.
|
||||
*
|
||||
* See
|
||||
* - https://python-oracledb.readthedocs.io/en/latest/index.html
|
||||
* - https://pypi.org/project/oracledb/
|
||||
*/
|
||||
|
||||
private import python
|
||||
private import semmle.python.dataflow.new.DataFlow
|
||||
private import semmle.python.dataflow.new.RemoteFlowSources
|
||||
private import semmle.python.Concepts
|
||||
private import semmle.python.ApiGraphs
|
||||
private import semmle.python.frameworks.PEP249
|
||||
|
||||
/**
|
||||
* Provides models for the `oracledb` PyPI package.
|
||||
*
|
||||
* See
|
||||
* - https://python-oracledb.readthedocs.io/en/latest/index.html
|
||||
* - https://pypi.org/project/oracledb/
|
||||
*/
|
||||
private module Oracledb {
|
||||
/**
|
||||
* A model for oracledb as a module that implements PEP 249, providing ways to execute SQL statements
|
||||
* against a database.
|
||||
*/
|
||||
class Oracledb extends PEP249::PEP249ModuleApiNode {
|
||||
Oracledb() { this = API::moduleImport("oracledb") }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user