diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-06-04 17:29:20 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-10-01 16:52:24 -0400 |
commit | cc718cccc0bf8a01abdf4068c7ea4f32c9322af6 (patch) | |
tree | e839526dd0ab64bf0d8babe01006e03987403a66 /lib/sqlalchemy/orm/util.py | |
parent | a3c964203e61f8deeb559b15a78cc640dee67012 (diff) | |
download | sqlalchemy-cc718cccc0bf8a01abdf4068c7ea4f32c9322af6.tar.gz |
Run row value processors up front
as part of a larger series of changes to generalize row-tuples,
RowProxy becomes plain Row and is no longer a "proxy"; the
DBAPI row is now copied directly into the Row when constructed,
result handling occurs at once.
Subsequent changes will break out Row into a new version that
behaves fully a tuple.
Change-Id: I2ffa156afce5d21c38f28e54c3a531f361345dd5
Diffstat (limited to 'lib/sqlalchemy/orm/util.py')
-rw-r--r-- | lib/sqlalchemy/orm/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py index 747ec7e65..5f0f41e8d 100644 --- a/lib/sqlalchemy/orm/util.py +++ b/lib/sqlalchemy/orm/util.py @@ -297,7 +297,7 @@ def identity_key(*args, **kwargs): * ``identity_key(class, row=row, identity_token=token)`` This form is similar to the class/tuple form, except is passed a - database result row as a :class:`.RowProxy` object. + database result row as a :class:`.Row` object. E.g.:: @@ -307,7 +307,7 @@ first() (<class '__main__.MyClass'>, (1, 2), None) :param class: mapped class (must be a positional argument) - :param row: :class:`.RowProxy` row returned by a :class:`.ResultProxy` + :param row: :class:`.Row` row returned by a :class:`.ResultProxy` (must be given as a keyword arg) :param identity_token: optional identity token |