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.htmlfile - Run
api.cmd(orapi.shon Unix) to compile and run the first example - Run
executable.cmd(orexecutable.shon Unix) to compile and run the second example - Run
resultset.cmd(orresultset.shon Unix) to compile and run the third example
How to Experiment
- Try uncommenting the code block in
com.example.ApiExample.javathat modifies the default options. - Read the SchemaCrawler javadoc, and edit
com.example.ApiExample.javato print more details. - Make changes to
com.example.ExecutableExample.javato produce different types of output.