Return a new dict which maps field names to their corresponding values. This method is analogous to the Python named tuple ``._asdict()`` method, and works by applying the ``dict()`` constructor to the :attr:`.Row._mapping` attribute. .. versionadded:: 1.4
(self)
| 263 | return tuple([k for k in self._parent.keys if k is not None]) |
| 264 | |
| 265 | def _asdict(self) -> Dict[str, Any]: |
| 266 | """Return a new dict which maps field names to their corresponding |
| 267 | values. |
| 268 | |
| 269 | This method is analogous to the Python named tuple ``._asdict()`` |
| 270 | method, and works by applying the ``dict()`` constructor to the |
| 271 | :attr:`.Row._mapping` attribute. |
| 272 | |
| 273 | .. versionadded:: 1.4 |
| 274 | |
| 275 | .. seealso:: |
| 276 | |
| 277 | :attr:`.Row._mapping` |
| 278 | |
| 279 | """ |
| 280 | return dict(self._mapping) |
| 281 | |
| 282 | |
| 283 | BaseRowProxy = BaseRow |
no outgoing calls