[Flask] Flask-SQLAlchemy 2.2 released

David Lord davidism at gmail.com
Mon Feb 27 11:08:19 EST 2017


After a long wait, we've released Flask-SQLAlchemy 2.2 with essential bug
fixes from the last few years. Sorry for the long wait!
https://github.com/mitsuhiko/flask-sqlalchemy/releases/tag/2.2

Install or upgrade with pip:

    pip install -U Flask-SQLAlchemy

Changelog:

- Minimum SQLAlchemy version is 0.8 due to use of ``sqlalchemy.inspect``.
- Added support for custom ``query_class`` and ``model_class`` as args
  to the ``SQLAlchemy`` constructor. (`#328`_)
- Allow listening to SQLAlchemy events on ``db.session``. (`#364`_)
- Allow ``__bind_key__`` on abstract models. (`#373`_)
- Allow ``SQLALCHEMY_ECHO`` to be a string. (`#409`_)
- Warn when ``SQLALCHEMY_DATABASE_URI`` is not set. (`#443`_)
- Don't let pagination generate invalid page numbers. (`#460`_)
- Drop support of Flask < 0.10. This means the db session is always tied to
  the app context and its teardown event. (`#461`_)
- Tablename generation logic no longer accesses class properties unless they
  are ``declared_attr``. (`#467`_)

.. _#328: https://github.com/mitsuhiko/flask-sqlalchemy/pull/328
.. _#364: https://github.com/mitsuhiko/flask-sqlalchemy/pull/364
.. _#373: https://github.com/mitsuhiko/flask-sqlalchemy/pull/373
.. _#409: https://github.com/mitsuhiko/flask-sqlalchemy/pull/409
.. _#443: https://github.com/mitsuhiko/flask-sqlalchemy/pull/443
.. _#460: https://github.com/mitsuhiko/flask-sqlalchemy/pull/460
.. _#461: https://github.com/mitsuhiko/flask-sqlalchemy/pull/461
.. _#467: https://github.com/mitsuhiko/flask-sqlalchemy/pull/467

---

We are still working towards larger changes in a 3.0 release, and would
appreciate any help, big or small. Whether it's triaging issues, updating
and improving the docs, finding bugs, or squashing bugs, everything helps!

---

Finally, if you want to, please retweet this to spread the word to more
developers:

   https://twitter.com/davidism/status/836243545409241088

Again, thank you for your continued support and patience!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170227/19ce98a4/attachment-0001.html>


More information about the Flask mailing list