class _WithKeys: (source)
Known subclasses: sqlalchemy.engine.result.MappingResult
, sqlalchemy.engine.result.Result
, sqlalchemy.ext.asyncio.result.AsyncMappingResult
, sqlalchemy.ext.asyncio.result.AsyncResult
Undocumented
Method | keys |
Return an iterable view which yields the string keys that would be represented by each :class:`_engine.Row`. |
Class Variable | __slots__ |
Undocumented |
Class Variable | _metadata |
Undocumented |
Return an iterable view which yields the string keys that would be represented by each :class:`_engine.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. .. versionchanged:: 1.4 a key view object is returned rather than a plain list.