sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Overrides depending on multiple imports

Open VonMaydell opened this issue 1 month ago • 0 comments

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

VonMaydell avatar Nov 18 '25 11:11 VonMaydell