Skip to content

Commit ef2b225

Browse files
Fix PascalCase
1 parent f796efe commit ef2b225

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

python/ql/lib/semmle/python/frameworks/Streamlit.qll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ module Streamlit {
3535
* https://docs.streamlit.io/develop/api-reference/connections/st.connections.sqlconnection#:~:text=to%20data.-,st.connections.SQLConnection,-Streamlit%20Version
3636
* We can connect to SQL databases for example with `import streamlit as st; conn = st.connection('pets_db', type='sql')`
3737
*/
38-
private class StreamlitSQLConnection extends API::CallNode {
39-
StreamlitSQLConnection() {
38+
private class StreamlitSqlConnection extends API::CallNode {
39+
StreamlitSqlConnection() {
4040
exists(StringLiteral str, API::CallNode n |
4141
str.getText().matches("sql")
4242
and
@@ -56,7 +56,7 @@ module Streamlit {
5656
private class QueryMethodCall extends DataFlow::CallCfgNode, SqlExecution::Range {
5757

5858
QueryMethodCall() {
59-
exists(StreamlitSQLConnection s |
59+
exists(StreamlitSqlConnection s |
6060
this = s.getReturn().getMember("query").getACall())
6161
}
6262

@@ -70,7 +70,7 @@ module Streamlit {
7070
*/
7171
private class StreamlitSQLAlchemyConnection extends SqlAlchemy::Connection::InstanceSource {
7272
StreamlitSQLAlchemyConnection() {
73-
exists(StreamlitSQLConnection s |
73+
exists(StreamlitSqlConnection s |
7474
this = s.getReturn().getMember("connect").getACall())
7575
}
7676
}
@@ -79,9 +79,9 @@ private class StreamlitSQLAlchemyConnection extends SqlAlchemy::Connection::Inst
7979
* The underlying SQLAlchemy Engine, accessed via `st.connection().engine`.
8080
* Streamlit creates an engine to a SQL database basing off SQL Alchemy, so we can reuse the models that we already have.
8181
*/
82-
private class StreamlitSQLAlchemyEngine extends SqlAlchemy::Engine::InstanceSource {
83-
StreamlitSQLAlchemyEngine() {
84-
exists(StreamlitSQLConnection s |
82+
private class StreamlitSqlAlchemyEngine extends SqlAlchemy::Engine::InstanceSource {
83+
StreamlitSqlAlchemyEngine() {
84+
exists(StreamlitSqlConnection s |
8585
this = s.getReturn().getMember("engine").asSource())
8686
}
8787
}
@@ -92,9 +92,9 @@ private class StreamlitSQLAlchemyEngine extends SqlAlchemy::Engine::InstanceSour
9292
* For example, the modeling for `session` includes an `execute` method, which is used to execute raw SQL queries.
9393
* https://docs.streamlit.io/develop/api-reference/connections/st.connections.sqlconnection#:~:text=SQLConnection.engine-,SQLConnection.session,-Streamlit%20Version
9494
*/
95-
private class StreamlitSession extends SqlAlchemy::Session::InstanceSource {
96-
StreamlitSession() {
97-
exists(StreamlitSQLConnection s |
95+
private class StreamlitSqlSession extends SqlAlchemy::Session::InstanceSource {
96+
StreamlitSqlSession() {
97+
exists(StreamlitSqlConnection s |
9898
this = s.getReturn().getMember("session").asSource())
9999
}
100100
}

0 commit comments

Comments
 (0)