简体   繁体   中英

Do not show relations to invisible tables in SchemaCrawler diagram

I use schemacrawler-14.16.03 on Windows 7. My command is:

schemacrawler.cmd -server=postgresql -host=hostname -port=5432 -database=db -schemas=public -user=user -password=***-sslmode=require -loglevel=INFO -outputformat png -infolevel=standard -command=schema -outputfile=somefile.png

I want to show a group of tables with relations between them. I edited schemacrawler.config.properties schemacrawler.table.pattern.include and easy got only tabels I need. But a diagram contains all relations beetween these tables and other tables (invisible at diagram).

I tried to change different config options but unable to hide these relations. How can I hide them?

Here is another way you can try out. In schemacrawler.config.properties , let schemacrawler.table.pattern.include include all tables ( .* ).

Use the following -grepcolumns trick shown below to include only the tables you want, and use -only-matching to exclude links to invisible tables.

Try the following command on a single line: schemacrawler.cmd -server=postgresql -host=hostname -port=5432 -database=db -schemas=public -user=user -password=*** -infolevel=standard -command=schema -only-matching -grepcolumns=.*\\.(YOUR TABLE PATTERN)\\..* -outputfile=somefile.png

Sualeh Fatehi, SchemaCrawler

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM