Force readonly mode

This commit is contained in:
Alexandre
2025-03-05 11:30:35 +01:00
committed by Nachtzuster
parent c5f39f6670
commit de57d009db
+2 -1
View File
@@ -54,7 +54,8 @@ st.markdown("""
@st.cache_resource()
def get_connection(path: str):
return sqlite3.connect(path, check_same_thread=False)
uri = f"file:{path}?mode=ro&cache=shared"
return sqlite3.connect(uri, uri=True, check_same_thread=False)
def get_data(_conn: Connection):