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
fix: Add close() method to SQLAlchemySession for proper engine disposal
- Add _owns_engine flag to track engine ownership
- from_url() sets _owns_engine=True (SDK creates engine)
- Direct engine injection keeps _owns_engine=False (user manages)
- close() disposes engine only when owned by session
- Matches RedisSession pattern for resource lifecycle management
Fixes resource leak when using from_url() in long-running applications
0 commit comments