Skip to content

Overrides depending on multiple imports #4184

@VonMaydell

Description

@VonMaydell

What do you want to change?

Example scenario

I use a generic type for optional values and want to add an override for an optional UUID to that generic type.

overrides:
- db_type: "uuid"
  nullable: true
  go_type: "github.com/GenericOptionals/GenericOptional.Option[github.com/google/uuid.UUID]"

or alternatively

overrides:
- db_type: "uuid"
  nullable: true
  go_type:
  - import:
    - "github.com/GenericOptionals/GenericOptional"
    - "github.com/google/uuid"
    type: "GenericOptional.Option[uuid.UUID]"

I'd like to have the ability to specify multiple imports to be able to override to a generic type consisting of types from separate dependencies.

What database engines need to be changed?

No response

What programming language backends need to be changed?

Go

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