Support all time resolutions on all counter views
This commit is contained in:
9
app/queries/connection.py
Normal file
9
app/queries/connection.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
import streamlit as st
|
||||
from sqlalchemy.sql import text
|
||||
from streamlit.connections import BaseConnection
|
||||
|
||||
connection: BaseConnection = st.connection("sqlite")
|
||||
|
||||
with connection.session as configure_session:
|
||||
configure_session.execute(text('PRAGMA foreign_keys=ON'))
|
||||
Reference in New Issue
Block a user