Return a list of ENUM objects. Each member is a dictionary containing these fields: * name - name of the enum * schema - the schema name for the enum. * visible - boolean, whether or not this enum is visible in the default search path.
(self, schema: Optional[str] = None)
| 3159 | ) |
| 3160 | |
| 3161 | def get_enums(self, schema: Optional[str] = None) -> List[ReflectedEnum]: |
| 3162 | """Return a list of ENUM objects. |
| 3163 | |
| 3164 | Each member is a dictionary containing these fields: |
| 3165 | |
| 3166 | * name - name of the enum |
| 3167 | * schema - the schema name for the enum. |
| 3168 | * visible - boolean, whether or not this enum is visible |
| 3169 | in the default search path. |
| 3170 | * labels - a list of string labels that apply to the enum. |
| 3171 | |
| 3172 | :param schema: schema name. If None, the default schema |
| 3173 | (typically 'public') is used. May also be set to ``'*'`` to |
| 3174 | indicate load enums for all schemas. |
| 3175 | |
| 3176 | """ |
| 3177 | with self._operation_context() as conn: |
| 3178 | return self.dialect._load_enums( |
| 3179 | conn, schema, info_cache=self.info_cache |
| 3180 | ) |
| 3181 | |
| 3182 | def get_foreign_table_names( |
| 3183 | self, schema: Optional[str] = None |