-
-
Notifications
You must be signed in to change notification settings - Fork 64
feat(litestar): server side session backend #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #429 +/- ##
==========================================
- Coverage 88.35% 78.61% -9.75%
==========================================
Files 84 86 +2
Lines 5661 6149 +488
Branches 728 771 +43
==========================================
- Hits 5002 4834 -168
- Misses 441 1068 +627
- Partials 218 247 +29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Updated `table_name_regexp` to use raw string notation for clarity. - Refactored session model to inherit from `UUIDv7Base` and updated field names for consistency. - Simplified session backend initialization and session management methods. - Enhanced session expiration logic with clearer method names and improved type hints. - Removed deprecated code related to session model creation and registration. - Added error handling for rollback statuses in `autocommit_handler_maker`.
- Marked `SessionModelMixin` and `StoreModelMixin` as abstract classes to enforce inheritance. - Added a setter for the `config` property in `SQLAlchemySessionBackendBase` for improved configurability. - Updated tests to utilize mock models for session and store, ensuring better isolation and clarity in test cases. - Refactored session model creation tests to directly define models for clarity and maintainability. - Improved assertions in tests to compare against current time for expiration checks.
93532e2 to
ea9d587
Compare
Signed-off-by: Cody Fincher <[email protected]>
|
|
|
Documentation preview will be available shortly at https://litestar-org.github.io/advanced-alchemy-docs-preview/429 |



Implements a server side session backend using SQLAlchemy. Works with an Async or Sync configuration.