Skip to content
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

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

UUID as pk #175

wants to merge 12 commits into from

Conversation

lyuboxa
Copy link
Contributor

@lyuboxa lyuboxa commented Jun 25, 2024

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:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

Comment on lines +25 to +27
// Format returns:
// * string format of Time when connectorn is not builtin
// * time type in UTC when connector is builtin
Copy link
Contributor

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)
Copy link
Contributor

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?)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants