SchemaCrawler - API Example
Description
The API example demonstrates the use of the SchemaCrawler API to create a data source, and obtain database metadata. The SchemaCrawler API is a much simpler alternative to using JDBC metadata.
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 - Run
api.cmd
(orapi.sh
on Unix) to compile and run the first example - Run
executable.cmd
(orexecutable.sh
on Unix) to compile and run the second example - Run
resultset.cmd
(orresultset.sh
on Unix) to compile and run the third example
How to Experiment
- Try uncommenting the code block in
com.example.ApiExample.java
that modifies the default options. - Read the SchemaCrawler javadoc, and edit
com.example.ApiExample.java
to print more details. - Make changes to
com.example.ExecutableExample.java
to produce different types of output.