feat: Added support for Flask-SQLAlchemy-Lite session management#284
Open
mstewart1409 wants to merge 1 commit intopallets-eco:developmentfrom
Open
feat: Added support for Flask-SQLAlchemy-Lite session management#284mstewart1409 wants to merge 1 commit intopallets-eco:developmentfrom
mstewart1409 wants to merge 1 commit intopallets-eco:developmentfrom
Conversation
18df62e to
0868578
Compare
0868578 to
33e7a77
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.