SchemaCrawler - Alternate Keys Example
Description
SchemaCrawler allows you to provide information about alternate keys for a 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
_downloader
directory - Run
download.cmd jackson
(ordownload.sh jackson
on 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.html
file - Start a command shell in the
alternate-keys
example directory - Run
alternate-keys.cmd alternate-keys.yaml alternate-keys.png
(oralternate-keys.sh alternate-keys.yaml alternate-keys.png
on Unix). - View the image in
alternate-keys.png
to see the alternate keys that were loaded from the YAML file
How to Experiment
- Modify
alternate-keys.yaml
and rerun the command