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

Support for optional primary key #127

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Support for optional primary key #127

merged 4 commits into from
Aug 25, 2023

Conversation

hyperphoton
Copy link
Collaborator

If some table do not have primary key, now is supported by this pr.
Just let PrimaryKeyGeneratorFn return 0.

@hyperphoton hyperphoton merged commit f5d7849 into main Aug 25, 2023
8 checks passed
@hyperphoton hyperphoton deleted the feature/optional-id branch August 25, 2023 09:11
liangjunmo pushed a commit to liangjunmo/gorm-sharding that referenced this pull request Aug 25, 2023
* Auto-fill `id` is now optional.
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.

1 participant