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

feat: support of uint for gorm.Model #173

Merged
merged 2 commits into from
Oct 31, 2023
Merged

feat: support of uint for gorm.Model #173

merged 2 commits into from
Oct 31, 2023

Conversation

rahul2393
Copy link
Collaborator

https://gorm.io/docs/models.html#gorm-Model declares field ID type uint for gorm, this PR will enable use of uint datatype with spanner driver

driver.go Outdated
@@ -723,6 +723,7 @@ func checkIsValidType(v driver.Value) bool {
default:
return false
case nil:
case uint:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: move this down to line 741 and also include support for []uint and *uint if possible.

stmt.go Outdated Show resolved Hide resolved
@rahul2393 rahul2393 merged commit b56bfa8 into main Oct 31, 2023
13 checks passed
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