You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
316 B

  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)