diesel_cli_ext icon indicating copy to clipboard operation
diesel_cli_ext copied to clipboard

Suggestion: Allow excluding certain tables from generation

Open Boscop opened this issue 5 years ago • 3 comments

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.

Boscop avatar Nov 21 '19 14:11 Boscop

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.

abbychau avatar Nov 22 '19 00:11 abbychau

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

Boscop avatar Nov 22 '19 16:11 Boscop

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.

Boscop avatar Nov 22 '19 16:11 Boscop