diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-08-04 20:30:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-08-04 20:30:19 +0000 |
| commit | 828a1a0d143976c0e36a4772d4bd908ff6484735 (patch) | |
| tree | 4d477ebe2709cfea5d84f7cf78ff5f7939b61aef /lib | |
| parent | 7c8572f004c0567482de98eb5697d8bb5e328b2d (diff) | |
| parent | 8032bfdcee30023aa2facf80be0d3627a8467149 (diff) | |
| download | sqlalchemy-828a1a0d143976c0e36a4772d4bd908ff6484735.tar.gz | |
Merge "deprecate Query.instances()" into main
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/query.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 99131e3e9..374ae5cc8 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -2783,6 +2783,13 @@ class Query( return _column_descriptions(self, legacy=True) + @util.deprecated( + "2.0", + "The :meth:`_orm.Query.instances` method is deprecated and will " + "be removed in a future release. " + "Use the Select.from_statement() method or aliased() construct in " + "conjunction with Session.execute() instead.", + ) def instances( self, result_proxy: CursorResult[Any], |
