Negation support
vitaly-t opened this issue · 2 comments
A schema can include service tables, either special for security or for PostGIS ones.
One needs to be able to say: generate for all tables in the schema, except for...
and list the tables to be excluded, possibly with a reg-ex pattern for exclusion. Might also add support for reg-ex pattern for inclusion as well.
At this point it might be best to introduce profiling support also, i.e. a default .schemats.json
file in the app's root to configure everything that's generated, to avoid too long command lines 😉
Totally agree, I thought of some more parameters, and a config file will become unavoidable.
Nice! With yargs package, it's very easy to add support for a schemats.json
file.
And table negation can use a --exclude
param.