Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/codegen: add Enum.Valid and AllEnumValues #1613

Merged
merged 2 commits into from
May 23, 2022

Commits on May 12, 2022

  1. internal/codegen: add Enum.Valid and AllEnumValues

    This commit adds a Valid method for enum types
    and an All...Values function to get all enum values.
    
    This makes it easier to work with enums.
    
    These are gated by new config parameters
    emit_enum_valid_method and emit_all_enum_values.
    
    Fixes sqlc-dev#1607
    josharian committed May 12, 2022
    Configuration menu
    Copy the full SHA
    a389a63 View commit details
    Browse the repository at this point in the history
  2. scripts/regenerate: on failure, print stdout/stderr

    This helps with debugging.
    josharian committed May 12, 2022
    Configuration menu
    Copy the full SHA
    32984ef View commit details
    Browse the repository at this point in the history