georgs #23

Closed
Ghost wants to merge 50 commits from georgs into main
Showing only changes of commit d5150d47a2 - Show all commits

View File

@@ -0,0 +1,12 @@
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
URL = "sqlite:///./sql_app.db"
engine = create_engine(
URL, connect_args={"check_same_thread":False}
)
SessionLocal = sessionmaker(autocommit=False, autoflush=Flase, bind=engine)
Base = declarative_base()