You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
kafejo
changed the title
FastAPI: passing SQLAlchemy through SlackRequestHandler
FastAPI: passing SQLAlchemy Session through SlackRequestHandler
Dec 10, 2021
Hi @kafejo, thanks for taking the time to write in!
The only solution that I can think of is to enable context objects to include the additional values this way: #544 With the solution, you can pass the db object as below:
In the FastAPI documentation they suggest to pass db session in following fashion:
Is there suggested way to handle this? Couldn't find anything in documentation or examples and can't make it work.
See https://fastapi.tiangolo.com/tutorial/sql-databases/#create-a-dependency
Thanks for your help.
The text was updated successfully, but these errors were encountered: