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

Add --no-crud option to skip generating CRUD functions #48

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

longsleep
Copy link
Collaborator

In certain cases it might be not desireable to write CRUD functions by hand. To avoid conflict this change adds the option to skip generating those functions. This for example is a workaround for MySQL which currently is not supported by the generated functions or to support unsigned integers in id fields.

Related: #46
Related: #47

README.md Outdated Show resolved Hide resolved
src/code.rs Outdated Show resolved Hide resolved
src/code.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@AnthonyMichaelTDM AnthonyMichaelTDM left a comment

Choose a reason for hiding this comment

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

Forgot to mark the files as viewed, mb

In certain cases it might be not desireable to write CRUD functions by
hand. To avoid conflict this change adds the option to skip generating
those functions. This for example is a workaround for MySQL which
currently is not supported by the generated functions or to support
unsigned integers in id fields.

Related: Wulf#46
Related: Wulf#47
@longsleep longsleep force-pushed the longsleep-optional-functions branch from 8e8b9e9 to 55fc2e7 Compare August 31, 2023 10:51
@longsleep
Copy link
Collaborator Author

This PR also was rebased on latest main. While at it, I also added a test.

src/lib.rs Show resolved Hide resolved
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Looks good to me.

just for reference, re #56, this option would be similar to fork's --no-impls

@Wulf
Copy link
Owner

Wulf commented Sep 3, 2023

@longsleep thanks for this and for your patience.

Thanks for the reviews @AnthonyMichaelTDM @hasezoey 🙌

@Wulf Wulf merged commit b783ab8 into Wulf:main Sep 3, 2023
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.

4 participants