-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID as pk #175
UUID as pk #175
Conversation
// Format returns: | ||
// * string format of Time when connectorn is not builtin | ||
// * time type in UTC when connector is builtin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment needs to be updated.
// * string format of Time when connectorn is not builtin | ||
// * time type in UTC when connector is builtin | ||
func (UUIDFormatter) Format(v any) (string, error) { | ||
b, ok := v.([16]byte) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So a UUID can come in either as a byte slice (with type set to pgtype.UUIDOID) or as a string (what's the type in that case?)?
Description
Please include a summary of the change and what type of change it is (new feature, bug fix, refactoring, documentation).
Please also include relevant motivation and context.
List any dependencies that are required for this change.
Fixes # (issue)
Quick checks: