您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011
  1. from sqlalchemy import create_engine
  2. from sqlalchemy.orm import sessionmaker
  3. from core.config import settings
  4. SQLALCHEMY_DATABASE_URL = settings.DATABASE_URL
  5. engine = create_engine(SQLALCHEMY_DATABASE_URL)
  6. print(SQLALCHEMY_DATABASE_URL)
  7. SessionLocal = sessionmaker(autocommit=False,autoflush=False,bind=engine)