List enums
list_enumsList all enum types in a given PostgreSQL schema, returning each enum's name and its ordered label values.
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 |