]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Break scalars() and mappings() into separate objects
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Aug 2020 22:40:49 +0000 (18:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Aug 2020 16:23:56 +0000 (12:23 -0400)
commit6d4dcbb40571644494524738cd76e2e281323534
tree55f63399ebe9d711b5d49e01f0436cead3e0a82e
parent180ae7c1a53385f72b0047496ac001ec5099cc3e
Break scalars() and mappings() into separate objects

The issue of Result.fetchXXX()  methods returning Row
objects unless filtering is applied will not provide a
clear enough API story when type annotations are applied,
so break out scalars/mappings into separate wrapper objects.
this makes some things more intuitive and other things a little
more bumpy.   however the return type story is now clearer.

Fixes: #5503
Change-Id: I629a061823179680dc0723559183859a67ea4db1
doc/build/changelog/unreleased_14/bind_removed_from_compiler.rst
doc/build/changelog/unreleased_14/result.rst
doc/build/core/connections.rst
lib/sqlalchemy/engine/__init__.py
lib/sqlalchemy/engine/cursor.py
lib/sqlalchemy/engine/result.py
test/base/test_result.py
test/sql/test_resultset.py