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.htmlfile - Start a system command shell (
cmdon Windows orbashon Linux) in the SchemaCrawler distribution directory, that is, the_schemacrawlerdirectory. - Run
schemacrawler.cmd --shell(orschemacrawler.sh --shellon Unix), to start the SchemaCrawler Interactive Shell. - In the SchemaCrawler Interactive Shell,
- Type
helpto get detailed help on all the commands available - Type
connect --server hsqldb --user sa --password= --database schemacrawlerto connect to the database - Type
sys --is-connectedto verify the connection - Type
load --info-level standardto load metadata - Type
sys --is-loadedto verify that metadata is loaded - Type
execute --command briefto run the “brief” command - Type
quitto 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.