Return mapping from enumerated column names to `Enum` instances.
(self)
| 1022 | ] |
| 1023 | |
| 1024 | def _get_enum_map(self) -> dict[str, Enum]: |
| 1025 | """Return mapping from enumerated column names to `Enum` instances.""" |
| 1026 | enum_map = {} |
| 1027 | for colobj in self.description._f_walk("Col"): |
| 1028 | if colobj.kind == "enum": |
| 1029 | enum_map[colobj._v_pathname] = colobj.enum |
| 1030 | return enum_map |
| 1031 | |
| 1032 | def _g_create(self) -> int: |
| 1033 | """Create a new table on disk.""" |
no test coverage detected