class documentation

class _WithKeys(object):

Known subclasses: sqlalchemy.engine.result.MappingResult, sqlalchemy.engine.result.Result

View In Hierarchy

Undocumented

Method keys Return an iterable view which yields the string keys that would be represented by each .Row.
def keys(self):

Return an iterable view which yields the string keys that would be represented by each .Row.

The keys can represent the labels of the columns returned by a core statement or the names of the orm classes returned by an orm execution.

The view also can be tested for key containment using the Python in operator, which will test both for the string keys represented in the view, as well as for alternate keys such as column objects.

Changed in version 1.4: a key view object is returned rather than a plain list.