mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Add StreamlitConnection model
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
@@ -10,3 +10,8 @@ conn = st.connection("postgresql", type="sql")
|
||||
|
||||
# SQL injection sink
|
||||
q = conn.query("some sql") # $ getSql="some sql"
|
||||
|
||||
# SQLAlchemy connection
|
||||
c = conn.connect()
|
||||
|
||||
c.execute("other sql") # $ getSql="other sql"
|
||||
|
||||
Reference in New Issue
Block a user