SchemaCrawler - Interactive Shell Example
Description
The command example demonstrates the use of the SchemaCrawler Interactive Shell.
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 system command shell (
cmd
on Windows orbash
on Linux) in the SchemaCrawler distribution directory, that is, the_schemacrawler
directory. - Run
schemacrawler.cmd --shell
(orschemacrawler.sh --shell
on Unix), to start the SchemaCrawler Interactive Shell. - In the SchemaCrawler Interactive Shell,
- Type
help
to get detailed help on all the commands available - Type
connect --server hsqldb --user sa --password= --database schemacrawler
to connect to the database - Type
sys --is-connected
to verify the connection - Type
load --info-level standard
to load metadata - Type
sys --is-loaded
to verify that metadata is loaded - Type
execute --command brief
to run the “brief” command - Type
quit
to quit the SchemaCrawler Interactive Shell
- Type
How to Experiment
- Try using different SchemaCrawler Interactive Shell commands, such as “limit”, and see how they affect the output.