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

Suggestion: Allow excluding certain tables from generation #28

Open
Boscop opened this issue Nov 21, 2019 · 3 comments
Open

Suggestion: Allow excluding certain tables from generation #28

Boscop opened this issue Nov 21, 2019 · 3 comments

Comments

@Boscop
Copy link

Boscop commented Nov 21, 2019

Some table's model structs should still be handwritten, and there should be no confusion / shadowing or dead code.
So it'd be great if one could --exclude table_name / -e table_name.

@abbychau
Copy link
Owner

abbychau commented Nov 22, 2019

are the filters provided by diesel_cli enough for your case?
fyi, It corresponds to the --only-tables and --except-tables on the command line.

@Boscop
Copy link
Author

Boscop commented Nov 22, 2019

Thanks! Sorry, I hadn't seen that :)

@Boscop Boscop closed this as completed Nov 22, 2019
@Boscop Boscop reopened this Nov 22, 2019
@Boscop
Copy link
Author

Boscop commented Nov 22, 2019

Hm, actually, no, because I can't use a diesel.toml file for this use case.
There should be a way to specify --only-tables and --except-tables with diesel_cli_ext on the command line.

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

No branches or pull requests

2 participants