SQLAlchemy
Backend & InfraThe Database Toolkit for Python
Release History
rel_2_0_4511 fixes2 featuresSQLAlchemy 2.0.45 introduces PostgreSQL collation reflection and MySQL FOR SHARE support, while fixing numerous bugs across ORM, SQL, typing, and SQLite reflection.
rel_2_0_4411 fixes2 featuresSQLAlchemy 2.0.44 introduces refined ORM type‑alias handling, adds the `_orm.mapped_as_dataclass()` decorator, and fixes numerous bugs across platforms, engines, and dialects.
rel_2_0_434 fixes2 featuresSQLAlchemy 2.0.43 introduces a new `skip_autocommit_rollback` engine option and adds sparse vector support to Oracle, while fixing several ORM and PostgreSQL bugs.
rel_2_0_428 fixes7 featuresSQLAlchemy 2.0.42 adds dataclass metadata support, new loader options for composites, enhanced execution‑parameter validation, a VALUES‑CTE helper, PostgreSQL 14+ JSONB subscripting, and numerous bug fixes across ORM, SQL compilation, and dialects.
rel_2_0_416 fixes2 featuresSQLAlchemy 2.0.41 introduces PostgreSQL and Oracle enhancements, fixes several bugs across multiple dialects, and improves Python 3.14 beta compatibility.
rel_2_0_408 fixes3 featuresSQLAlchemy 2.0.40 adds GROUPS frame support for window functions, enhances PostgreSQL foreign‑key ON DELETE actions and ARRAY literals, and includes numerous bug fixes across ORM, SQL compilation, asyncio, and MySQL/SQLite dialects.
rel_2_0_3910 fixes2 featuresSQLAlchemy 2.0.39 introduces generic typing for compound selects and new constraint isolation parameters, while fixing numerous ORM, asyncio, PostgreSQL, and SQLite bugs.
rel_2_0_38Breaking6 fixes1 featureSQLAlchemy 2.0.38 introduces a new asyncio.shield() safeguard for asyncpg termination, fixes several bugs across engines and dialects, and changes the default aiosqlite pool, which may require a migration step.