You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which generates models with pgtype.* why? it supposes to use sql.* right?, the problem is that I don't know how to work with pgtype.UUID to create new random uuid for example, also a lot of refactor needed to accommodate the new pgtype package. Shall I override the types? In this case, which library should I use? github.com/jackc/pgx-gofrs-uuid?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm upgrading my project to the versions mentioned in the title. I used to have the following config for sqlc:
But now with
pgx/v5
, I have the following sqlc config:Which generates models with
pgtype.*
why? it supposes to usesql.*
right?, the problem is that I don't know how to work withpgtype.UUID
to create new random uuid for example, also a lot of refactor needed to accommodate the newpgtype
package. Shall I override the types? In this case, which library should I use?github.com/jackc/pgx-gofrs-uuid
?Beta Was this translation helpful? Give feedback.
All reactions