---
title: "flask-sqlalchemy 3.1.0 Breaking Changes on PyPI | Since.dev"
description: "What each flask-sqlalchemy release removed, renamed or changed: 67 breaking changes in 7 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/flask-sqlalchemy
last_updated: 2026-12-04
---

# flask-sqlalchemy breaking changes

flask-sqlalchemy 3.1.0 (September 11, 2023) is its newest release with breaking changes, 14 of them. The first: Removes code that was previously deprecated in Flask-SQLAlchemy 3.1.0. Every breaking API change we have recorded in flask-sqlalchemy on PyPI: 67 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.1.1`, released September 11, 2023. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.0](#v-2-0) to [3.1.0](#v-3-1-0): 62 breaking changes in 5 versions.
- From [1.0](#v-1-0) to [3.1.0](#v-3-1-0): 64 breaking changes in 6 versions.

## flask-sqlalchemy 3.1.0 breaking changes

flask-sqlalchemy 3.1.0, released September 11, 2023: 14 breaking changes.

- **Removed**  

This release removes previously deprecated code, so code relying on deprecated features may break. Check your use of deprecated features and update it before upgrading. [github.com](https://github.com/pallets-eco/flask-sqlalchemy/releases/tag/3.1.0)
- **Removed** `flask_sqlalchemy.BaseQuery`  

flask_sqlalchemy.BaseQuery was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.before_models_committed`  

flask_sqlalchemy.before_models_committed was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.DefaultMeta`  

flask_sqlalchemy.DefaultMeta was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.get_debug_queries`  

flask_sqlalchemy.get_debug_queries was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.Model`  

flask_sqlalchemy.Model was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.models_committed`  

flask_sqlalchemy.models_committed was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.Pagination`  

flask_sqlalchemy.Pagination was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.SignallingSession`  

flask_sqlalchemy.SignallingSession was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.get_binds`  

SQLAlchemy.get_binds was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.get_tables_for_bind`  

SQLAlchemy.get_tables_for_bind was removed in Flask-SQLAlchemy 3.1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.__init__`  

Was def \_\_init\_\_(self, app: Flask | None = None, \*, metadata: sa.MetaData | None = None, session_options: dict\[str, t.Any\] | None = None, query_class: type\[Query\] = Query, model_class: type\[Model\] | sa_orm.DeclarativeMeta = Model... [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.get_engine`  

Was def get_engine(self, bind_key: str | None = None) -> sa.engine.Engine; now def get_engine(self, bind_key: str | None = None, \*\*kwargs: t.Any) -> sa.engine.Engine. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.get_or_404`  

Was def get_or_404(self, entity: type\[\_O\], ident: t.Any, \*, description: str | None = None) -> \_O; now def get_or_404(self, entity: type\[\_O\], ident: t.Any, \*, description: str | None = None, \*\*kwargs: t.Any) -> \_O. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.1.0/)

## flask-sqlalchemy 3.0.5 breaking changes

flask-sqlalchemy 3.0.5, released June 21, 2023: 1 breaking change.

- **Signature changed** `flask_sqlalchemy.SQLAlchemy.get_or_404`  

Was def get_or_404(self, entity: type\[\_O\], ident: t.Any, \*, description: str | None = None) -> t.Optional\[\_O\]; now def get_or_404(self, entity: type\[\_O\], ident: t.Any, \*, description: str | None = None) -> \_O. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.5/)

## flask-sqlalchemy 3.0.4 breaking changes

flask-sqlalchemy 3.0.4, released June 19, 2023: 12 breaking changes.

- **Signature changed** `flask_sqlalchemy.extension.DefaultMeta`  

Was class DefaultMeta(BindMetaMixin, NameMetaMixin, sa.orm.DeclarativeMeta); now class DefaultMeta(BindMetaMixin, NameMetaMixin, sa_orm.DeclarativeMeta). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.extension.Query`  

Was class Query(sa.orm.Query); now class Query(sa_orm.Query). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.extension.Session`  

Was class Session(sa.orm.Session); now class Session(sa_orm.Session). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.model.DefaultMeta`  

Was class DefaultMeta(BindMetaMixin, NameMetaMixin, sa.orm.DeclarativeMeta); now class DefaultMeta(BindMetaMixin, NameMetaMixin, sa_orm.DeclarativeMeta). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.model.Query`  

Was class Query(sa.orm.Query); now class Query(sa_orm.Query). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.query.Query`  

Was class Query(sa.orm.Query); now class Query(sa_orm.Query). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.session.Session`  

Was class Session(sa.orm.Session); now class Session(sa_orm.Session). [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.__init__`  

Was def \_\_init\_\_(self, app: Flask | None = None, \*, metadata: sa.MetaData | None = None, session_options: dict\[str, t.Any\] | None = None, query_class: type\[Query\] = Query, model_class: type\[Model\] | sa.orm.DeclarativeMeta = Model... [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.dynamic_loader`  

Was def dynamic_loader(self, argument: t.Any, \*\*kwargs: t.Any) -> sa.orm.RelationshipProperty\[t.Any\]; now def dynamic_loader(self, argument: t.Any, \*\*kwargs: t.Any) -> sa_orm.RelationshipProperty\[t.Any\]. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.get_or_404`  

Was def get_or_404(self, entity: type\[t.Any\], ident: t.Any, \*, description: str | None = None) -> t.Any; now def get_or_404(self, entity: type\[\_O\], ident: t.Any, \*, description: str | None = None) -> t.Optional\[\_O\]. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.4/)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## flask-sqlalchemy 3.0.3 breaking changes

flask-sqlalchemy 3.0.3, released January 31, 2023: 6 breaking changes.

- **Signature changed** `flask_sqlalchemy.extension.Model.query_class`  

Was query_class: t.Type\[Query\]; now query_class: type\[Query\]. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.__init__`  

Was def \_\_init\_\_(self, app: Flask | None = None, \*, metadata: sa.MetaData | None = None, session_options: dict\[str, t.Any\] | None = None, query_class: t.Type\[Query\] = Query, model_class: t.Type\[Model\] | sa.orm.DeclarativeMeta = Model... [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.first_or_404`  

Was def first_or_404(self, statement: sa.sql.Select, \*, description: str | None = None) -> t.Any; now def first_or_404(self, statement: sa.sql.Select\[t.Any\], \*, description: str | None = None) -> t.Any. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.get_or_404`  

Was def get_or_404(self, entity: t.Type\[t.Any\], ident: t.Any, \*, description: str | None = None) -> t.Any; now def get_or_404(self, entity: type\[t.Any\], ident: t.Any, \*, description: str | None = None) -> t.Any. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.one_or_404`  

Was def one_or_404(self, statement: sa.sql.Select, \*, description: str | None = None) -> t.Any; now def one_or_404(self, statement: sa.sql.Select\[t.Any\], \*, description: str | None = None) -> t.Any. [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)
- **Signature changed** `flask_sqlalchemy.SQLAlchemy.paginate`  

Was def paginate(self, select: sa.sql.Select, \*, page: int | None = None, per_page: int | None = None, max_per_page: int | None = None, error_out: bool = True, count: bool = True) -> Pagination; now def paginate(self, select... [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.3/)

## flask-sqlalchemy 3.0.0 breaking changes

flask-sqlalchemy 3.0.0, released October 4, 2022: 29 breaking changes.

- **Removed**  

The 3.0.0 release removes previously deprecated code, so code relying on those deprecated APIs must be updated. The release notes do not name the specific removed symbols. [github.com](https://github.com/pallets-eco/flask-sqlalchemy/releases/tag/3.0.0)
- **Removed** `flask_sqlalchemy.__version__`  

flask_sqlalchemy.\_\_version\_\_ was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.FSADeprecationWarning`  

flask_sqlalchemy.FSADeprecationWarning was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.get_state`  

flask_sqlalchemy.get_state was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.itervalues`  

flask_sqlalchemy.itervalues was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.model.camelcase_re`  

flask_sqlalchemy.model.camelcase_re was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.model.to_str`  

flask_sqlalchemy.model.to_str was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.app`  

SQLAlchemy.app was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.apply_driver_hacks`  

SQLAlchemy.apply_driver_hacks was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.apply_pool_defaults`  

SQLAlchemy.apply_pool_defaults was removed in Flask-SQLAlchemy 3.0.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/3.0.0/)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## flask-sqlalchemy 2.0 breaking changes

flask-sqlalchemy 2.0, released August 29, 2014: 2 breaking changes.

- **Behavior changed**  

The builtin signals are subscribed differently and skip sessions that are not Flask-SQLAlchemy sessions. Code that relied on signals firing for other sessions may change. [github.com](https://github.com/mitsuhiko/flask-sqlalchemy/blob/2.0/CHANGES)
- **Default changed**  

Sessions now autoflush by default. Code that relies on autoflush being off must turn it off explicitly. [github.com](https://github.com/mitsuhiko/flask-sqlalchemy/blob/2.0/CHANGES)

## Older versions

1 older version, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### flask-sqlalchemy 1.0 breaking changes

flask-sqlalchemy 1.0, released July 20, 2013: 3 breaking changes.

- **Removed** `flask_sqlalchemy.signalling_mapper`  

flask_sqlalchemy.signalling_mapper was removed in Flask-SQLAlchemy 1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/1.0/)
- **Removed** `flask_sqlalchemy.SQLAlchemy.session_extensions`  

SQLAlchemy.session_extensions was removed in Flask-SQLAlchemy 1.0 [pypi.org](https://pypi.org/project/Flask-SQLAlchemy/1.0/)

And 1 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
