SchemaCrawler - Weak Associations Example
Description
SchemaCrawler allows you to provide information about weak associations, or references from a column in one table to another table in a YAML file with the --attributes-file command-line switch.
How to Setup
- Make sure that java is on your PATH
- Start a command shell in the
_downloaderdirectory - Run
download.cmd jackson(ordownload.sh jacksonon Unix) to install serialization support using Jackson
How to Run
- Make sure that java is on your PATH
- Start the test database server by following instructions in the
_testdb/README.htmlfile - Start a command shell in the
weak-associationsexample directory - Run
weak-associations.cmd weak-associations.yaml(orweak-associations.sh weak-associations.yamlon Unix). - View the image in
weak-associations.pngto see the weak associations that were loaded from the YAML file
How to Experiment
- Modify
weak-associations.yamland rerun the command