List enums
list_enumsList enum types in a specified PostgreSQL schema, returning each enum's name and its label values in defined order for schema introspection.
Instructions
List the enum types in a schema, with their labels in sort order. Returns a list of objects with name and values (list of label strings, in the order defined).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |