Skip to content

support graceful migration for nullable enum types #1753

Closed
@josharian

Description

@josharian

Version

1.14.0

What happened?

#1485 improved handling of nullable fields with enum type. This is good.

But please consider adding a flag to opt out per-field. This is a backwards incompatible change; upgrading to the latest sqlc will cause code that used to compile not to compile any more. For a large code base, it would be much better to be able to upgrade field by field, rather than having to do one big bang. (There'd still be a big bang to the config file, but that's way safer and more manageable than a sprawling code change.)

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions