feat: Added support for Flask-SQLAlchemy-Lite session management #284
+821
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds support for Flask-SQLAlchemy-Lite as a session backend, allowing users to use
flask_sqlalchemy_litefor session storage in addition to the existing SQLAlchemy options. The implementation includes a new session interface, configuration options, documentation updates, and tests.New Flask-SQLAlchemy-Lite session backend:
SqlAlchemyLiteSessionInterfaceand related session model logic insrc/flask_session/sqlalchemy_lite/sqlalchemy_lite.py, enabling session storage viaflask_sqlalchemy_lite.src/flask_session/__init__.py, including support for configuration parameters such asSESSION_SQLALCHEMY_BASE_MODEL. [1] [2]sqlalchemy_litemodule's__init__.py.SESSION_SQLALCHEMY_BASE_MODELinsrc/flask_session/defaults.py.Documentation and configuration:
docs/config_reference.rstanddocs/installation.rstto describe the new backend, its configuration parameters, and installation instructions. [1] [2] [3]flask-sqlalchemy-liteindocs/conf.py..readthedocs.yaml.Dependency management:
flask-sqlalchemy-liteto the development, documentation, and testing dependencies inrequirements/docs.in,requirements/docs.txt,requirements/dev.txt,pyproject.toml, and updatedsqlalchemyversion. [1] [2] [3] [4] [5]Testing:
tests/test_sqlalchemy_lite.pyto verify correct operation of the new session backend, including session storage and retrieval.