Skip to content
Discussion options

You must be logged in to vote

So, request.state in Starlette was implemented today: Kludex/starlette#404

I just updated FastAPI to upgrade the Starlette version (and the compatibility changes).

And I updated the tutorial for SQL with SQLAlchemy using the new request.state: https://fastapi.tiangolo.com/tutorial/sql-databases/

You should now be able to use the new, proper technique, with FastAPI version 0.6.0 🎉

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #27 on February 28, 2023 15:33.