-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat #11: extend support for database ops via SQL driver #13
feat #11: extend support for database ops via SQL driver #13
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Flags with carried forward coverage won't be shown. Click here to find out more.
|
uuidv8.go
Outdated
|
||
// Value implements the driver.Value interface for database writes. | ||
func (u *UUIDv8) Value() (driver.Value, error) { | ||
if u == nil || len(u.Node) != 6 { |
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.
For me the len(u.Node) != 6 should return an error, no?
But maybe I'm wrong
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.
Makes sense 💯 I've made the validation stricter here.
works for me, thanks |
Co-authored-by: ccoVeille <[email protected]>
Co-authored-by: ccoVeille <[email protected]>
Co-authored-by: ccoVeille <[email protected]>
Changes
With this PR, as highlighted in #11, we attempt to extend support for Go Database Drivers to use
UUIDv8
in db operations.@vtolstov - Please review and let me know your thoughts.