Skip to content

Enum renaming #2129

@marlongerson

Description

@marlongerson

What do you want to change?

Can we add support for renaming generated name of enum values (similar to struct renames)? For example, add a setting in the config:

...
  rename_enum:
    spotify_url: "SpotifyURL"
    youtube_url: "YouTubeURL"
CREATE TYPE url AS ENUM(
    'spotify_url',
    'youtube_url'
    ...
);

With the above config this feature will generate the following:

const (
    SpotifyURL Url = "spotify_url"
    YouTubeURL Url = "youtube_url"
    ...
)

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions