diff options
author | Federico Caselli <cfederico87@gmail.com> | 2021-03-16 23:56:28 +0100 |
---|---|---|
committer | Federico Caselli <cfederico87@gmail.com> | 2021-03-17 00:31:59 +0100 |
commit | 82070dd0c719f7683e47c3983f949c64a46b92f9 (patch) | |
tree | 5c05cdc4b2367972b3e49284fa539037fcfb2c7c /lib/sqlalchemy/sql/base.py | |
parent | ade13e54cd2b2b7dce7eb8e3471ad998ceb630b4 (diff) | |
download | sqlalchemy-82070dd0c719f7683e47c3983f949c64a46b92f9.tar.gz |
Added back ``items`` and ``values`` to ``ColumnCollection`` class.
Fixes: #6068
Change-Id: Idb42c864e17c02d7b89cffa667dcf853ec93e5c2
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
-rw-r--r-- | lib/sqlalchemy/sql/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index c76c9ae14..726800717 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -1126,6 +1126,12 @@ class ColumnCollection(object): def keys(self): return [k for (k, col) in self._collection] + def values(self): + return [col for (k, col) in self._collection] + + def items(self): + return list(self._collection) + def __bool__(self): return bool(self._collection) |