9 lines
267 B
Python
9 lines
267 B
Python
|
|
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')) |