Nitin Namdev
Results
1
comments of
Nitin Namdev
you could try something like this - ``` python engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) session = SessionLocal() user = session.query(Model).filter_by(user_id=1).first() session.close() ``` or ref - https://docs.sqlalchemy.org/en/20/orm/quickstart.html#declare-models:~:text=Database%20Metadata.-,Create%20Objects%20and%20Persist,-%C2%B6 ```...