mirror of
https://github.com/github/codeql.git
synced 2026-01-06 11:10:23 +01:00
Add StreamlitConnection model
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
@@ -44,4 +44,14 @@ module Streamlit {
|
||||
|
||||
override DataFlow::Node getSql() { result in [this.getArg(0), this.getArgByName("sql")] }
|
||||
}
|
||||
private class StreamlitConnection extends SqlAlchemy::Connection::InstanceSource {
|
||||
StreamlitConnection() {
|
||||
this =
|
||||
API::moduleImport("streamlit")
|
||||
.getMember("connection")
|
||||
.getReturn()
|
||||
.getMember("connect")
|
||||
.getACall()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user