rel_2_0_17
版本发布时间: 2023-06-23 23:00:32
sqlalchemy/sqlalchemy最新发布版本:rel_2_0_36(2024-10-16 03:41:54)
2.0.17
Released: June 23, 2023
orm
-
[orm] [bug] [regression] Fixed regression in the 2.0 series where a query that used
undefer_group()
with_orm.selectinload()
or_orm.subqueryload()
would raise anAttributeError
. Pull request courtesy of Matthew Martin.References: #9870
-
[orm] [bug] Fixed issue in ORM Annotated Declarative which prevented a
_orm.declared_attr
from being used on a mixin which did not return aMapped
datatype, and instead returned a supplemental ORM datatype such asAssociationProxy
. The Declarative runtime would erroneously try to interpret this annotation as needing to beMapped
and raise an error.References: #9957
-
[orm] [bug] [typing] Fixed typing issue where using the
AssociationProxy
return type from a_orm.declared_attr
function was disallowed.References: #9957
-
[orm] [bug] [regression] Fixed regression introduced in 2.0.16 by #9879 where passing a callable to the
_orm.mapped_column.default
parameter of_orm.mapped_column
while also settinginit=False
would interpret this value as a Dataclass default value which would be assigned directly to new instances of the object directly, bypassing the default generator taking place as the_schema.Column.default
value generator on the underlying_schema.Column
. This condition is now detected so that the previous behavior is maintained, however a deprecation warning for this ambiguous use is emitted; to populate the default generator for a_schema.Column
, the_orm.mapped_column.insert_default
parameter should be used, which disambiguates from the_orm.mapped_column.default
parameter whose name is fixed as per pep-681.References: #9936
-
[orm] [bug] Additional hardening and documentation for the ORM
_orm.Session
"state change" system, which detects concurrent use of_orm.Session
and_asyncio.AsyncSession
objects; an additional check is added within the process to acquire connections from the underlying engine, which is a critical section with regards to internal connection management.References: #9973
-
[orm] [bug] Fixed issue in ORM loader strategy logic which further allows for long chains of
_orm.contains_eager()
loader options across complex inheriting polymorphic / aliased / of_type() relationship chains to take proper effect in queries.References: #10006
-
[orm] [bug] Fixed issue in support for the
Enum
datatype in the_orm.registry.type_annotation_map
first added as part of #8859 where using a customEnum
with fixed configuration in the map would fail to transfer theEnum.name
parameter, which among other issues would prevent PostgreSQL enums from working if the enum values were passed as individual values. Logic has been updated so that "name" is transferred over, but also that the defaultEnum
which is against the plain Python enum.Enum class or other "empty" enum won't set a hardcoded name of"enum"
either.References: #9963
orm declarative
-
[orm] [declarative] [bug] A warning is emitted when an ORM
_orm.relationship()
and otherMapperProperty
objects are assigned to two different class attributes at once; only one of the attributes will be mapped. A warning for this condition was already in place for_schema.Column
and_orm.mapped_column
objects.References: #3532
typing
-
[typing] [bug] Fixed typing issue which prevented
_orm.WriteOnlyMapped
and_orm.DynamicMapped
attributes from being used fully within ORM queries.References: #9985
postgresql
-
[postgresql] [usecase] The pg8000 dialect now supports RANGE and MULTIRANGE datatypes, using the existing RANGE API described at
postgresql_ranges
. Range and multirange types are supported in the pg8000 driver from version 1.29.8. Pull request courtesy Tony Locke.References: #9965
misc
-
[bug] [ext] Fixed issue in mypy plugin for use with mypy 1.4.
This change is also backported to: 1.4.49
1、 SQLAlchemy-2.0.17-cp310-cp310-macosx_10_9_x86_64.whl 1.89MB
2、 SQLAlchemy-2.0.17-cp310-cp310-macosx_11_0_arm64.whl 1.88MB
3、 SQLAlchemy-2.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.58MB
4、 SQLAlchemy-2.0.17-cp310-cp310-musllinux_1_1_x86_64.whl 2.6MB
5、 SQLAlchemy-2.0.17-cp310-cp310-win32.whl 1.87MB
6、 SQLAlchemy-2.0.17-cp310-cp310-win_amd64.whl 1.89MB
7、 SQLAlchemy-2.0.17-cp311-cp311-macosx_10_9_x86_64.whl 1.89MB
8、 SQLAlchemy-2.0.17-cp311-cp311-macosx_11_0_arm64.whl 1.88MB
9、 SQLAlchemy-2.0.17-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 2.64MB
10、 SQLAlchemy-2.0.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.64MB
11、 SQLAlchemy-2.0.17-cp311-cp311-musllinux_1_1_aarch64.whl 2.64MB
12、 SQLAlchemy-2.0.17-cp311-cp311-musllinux_1_1_x86_64.whl 2.64MB
13、 SQLAlchemy-2.0.17-cp311-cp311-win32.whl 1.87MB
14、 SQLAlchemy-2.0.17-cp311-cp311-win_amd64.whl 1.88MB
15、 SQLAlchemy-2.0.17-cp37-cp37m-macosx_10_9_x86_64.whl 1.89MB
16、 SQLAlchemy-2.0.17-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.55MB
17、 SQLAlchemy-2.0.17-cp37-cp37m-musllinux_1_1_x86_64.whl 2.56MB
18、 SQLAlchemy-2.0.17-cp37-cp37m-win32.whl 1.87MB
19、 SQLAlchemy-2.0.17-cp37-cp37m-win_amd64.whl 1.89MB
20、 SQLAlchemy-2.0.17-cp38-cp38-macosx_10_9_x86_64.whl 1.89MB
21、 SQLAlchemy-2.0.17-cp38-cp38-macosx_11_0_arm64.whl 1.88MB
22、 SQLAlchemy-2.0.17-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.64MB
23、 SQLAlchemy-2.0.17-cp38-cp38-musllinux_1_1_x86_64.whl 2.69MB
24、 SQLAlchemy-2.0.17-cp38-cp38-win32.whl 1.87MB
25、 SQLAlchemy-2.0.17-cp38-cp38-win_amd64.whl 1.89MB
26、 SQLAlchemy-2.0.17-cp39-cp39-macosx_10_9_x86_64.whl 1.89MB
27、 SQLAlchemy-2.0.17-cp39-cp39-macosx_11_0_arm64.whl 1.88MB
28、 SQLAlchemy-2.0.17-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 2.62MB
29、 SQLAlchemy-2.0.17-cp39-cp39-musllinux_1_1_x86_64.whl 2.64MB
30、 SQLAlchemy-2.0.17-cp39-cp39-win32.whl 1.87MB
31、 SQLAlchemy-2.0.17-cp39-cp39-win_amd64.whl 1.89MB
32、 SQLAlchemy-2.0.17-py3-none-any.whl 1.74MB