Skip to content

Where's the request scoping? #1077

Answered by davidism
scampos1030 asked this question in Q&A
Discussion options

You must be logged in to vote

The session is scoped to the Flask application context in Flask-SQLAlchemy 3. Because an active context is required, the session will always be cleaned up after it is used. The context is unique to each thread/greenlet/coroutine because it uses contextvars.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@scampos1030
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by davidism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants