database.py 372 B

12345678910
  1. # from sqlalchemy import create_engine
  2. # from sqlalchemy.ext.declarative import declarative_base
  3. # from sqlalchemy.orm import sessionmaker
  4. # SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db"
  5. # engine = create_engine(
  6. # SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
  7. # )
  8. # SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)