-
Notifications
You must be signed in to change notification settings - Fork 923
-
I want to override the google uuid but when I try type overriding, it does not replace the google uuid but merely adds the new one to the imports of the models.go
:
"github.com/gofrs/uuid"
"github.com/google/uuid"
This causes the following import error:
internal/queries/models.go:13:2: uuid redeclared in this block
internal/queries/models.go:11:2: other declaration of uuid
I've tried version 1
(as following), version 2
and column overriding and yet I am unable to get the google uuid to stop being imported. Note: Type overriding works for me for another db type, just not uuid
.
packages:
- path: "internal/queries"
name: "queries"
engine: "postgresql"
schema: "data/schema.sql"
queries: "data/queries.sql"
emit_methods_with_db_argument: true
overrides:
- go_type: "github.com/gofrs/uuid.UUID"
db_type: "uuid"
Any suggestions / help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
utkarshod
Dec 4, 2022
Solved here
Replies: 1 comment
-
Solved here
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
utkarshod
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment