schemats icon indicating copy to clipboard operation
schemats copied to clipboard

Negation support

Open vitaly-t opened this issue 8 years ago • 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 :wink:

vitaly-t avatar Mar 02 '17 08:03 vitaly-t

Totally agree, I thought of some more parameters, and a config file will become unavoidable.

abenhamdine avatar Mar 02 '17 09:03 abenhamdine

Nice! With yargs package, it's very easy to add support for a schemats.json file. And table negation can use a --exclude param.

xiamx avatar Mar 02 '17 15:03 xiamx