-
Notifications
You must be signed in to change notification settings - Fork 378
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
Implement NullUUID #54
Comments
Looking at the code it appears that NullUUID can actually be implemented outside of the uuid package itself. Have you considered making a simple package that provides this type? |
Ha! Didn't think about this obvious solution. I'd be happy to submit a PR basing the work on satori's implementation. |
This issue seems to be fixed, am I wrong? |
Should be able to close this one |
Just as I've stumbled across this personally as well, FYI there is a generic |
Looks like #76 solved this and this change got released in 1.3.0: https://github.com/google/uuid/releases/tag/v1.3.0 🎉 |
In order to allow
uuid.UUID
to work with the standard sql package to represent a UUID value that can be NULL in the database I suggest to implement aNullUUID
the same way asit's done in http://github.com/satori/go.uuid [1]
[1] https://pkg.go.dev/github.com/satori/go.uuid@v1.2.0?tab=doc#NullUUID
The text was updated successfully, but these errors were encountered: