Concept Flow - Database session management
Start API request
Create DB session
Use session in endpoint
Commit or rollback transaction
Close DB session
Return response
End API request
This flow shows how a database session is created at the start of a request, used during the request, then committed or rolled back, and finally closed before sending the response.