Skip to content

Python: DB Modeling: Add pymssql and executemany in general#10752

Merged
RasmusWL merged 6 commits intogithub:mainfrom
RasmusWL:pymssql
Oct 11, 2022
Merged

Python: DB Modeling: Add pymssql and executemany in general#10752
RasmusWL merged 6 commits intogithub:mainfrom
RasmusWL:pymssql

Conversation

@RasmusWL
Copy link
Member

This PR is actually 2 major features:

  • 4ee71ae Python: Add support for pymssql package
  • dba42d6 Python: Model executemany on PEP-249 DB APIs

I just stuck them together, since it was only the modeling of pymssql that made me realize we were missing the executemany calls 😳

I also forgot to mention `PyMySQL` in frameworks.rst
Note: I kept the modeling using the old approach with type-trackers
instead of `DataFlow::MethodCallNode`.

I would like a meta query for DCA to show sinks before doing this, so I
can be absolutely sure we don't loose out on any important sinks on
this... so will postpone this work to a small one-off task (added to my
todo list).
tausbn
tausbn previously approved these changes Oct 10, 2022
Copy link
Contributor

@tausbn tausbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, otherwise this looks good to me. 👍

@RasmusWL RasmusWL merged commit b3f1031 into github:main Oct 11, 2022
@RasmusWL RasmusWL deleted the pymssql branch October 11, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants