mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 04:13:43 +03:00
Added iteritem method to DictRow.
This commit is contained in:
parent
d189203f9f
commit
bfe5b8fe6b
|
@ -118,6 +118,9 @@ class DictRow(list):
|
||||||
except:
|
except:
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
def iteritems(self):
|
||||||
|
for n, v in self._index.items():
|
||||||
|
yield n, list.__getitem__(self, v)
|
||||||
|
|
||||||
class SQL_IN(object):
|
class SQL_IN(object):
|
||||||
"""Adapt any iterable to an SQL quotable object."""
|
"""Adapt any iterable to an SQL quotable object."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user