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

Document that serial and generated columns are not in insert and update mutations #501

Open
olirice opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@olirice
Copy link
Contributor

olirice commented Mar 19, 2024

Document that setting a type as serial or generated removes those fields from the insert and update types so end users can't provide a value and they're always generated by postgres

This is intentional behavior so users can't, for example, select their own value for a table's id, which will later by emitted by sequence which will conflict and create raise an error.

@olirice olirice added the documentation Improvements or additions to documentation label Mar 19, 2024
@olirice olirice self-assigned this Mar 19, 2024
@olirice olirice added the help wanted Extra attention is needed label Mar 19, 2024
@olirice
Copy link
Contributor Author

olirice commented Mar 19, 2024

ref #470 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant