SchemaCrawler - User Defined Queries Example
Description
SchemaCrawler has the capability to execute any arbitrary SQL, per table. The following variables are available to aid in the construction of queries - ${tabletype}
, ${table}
, and ${columns}
. This example demonstrates how to execute arbitrary SQL, per table.
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 user-defined-query example directory
- Run
user-defined-query.cmd
(oruser-defined-query.sh
on Unix)
How to Experiment
- Try generating different output formats, such as HTML.
- Try modifying
config/schemacrawler.config.properties
with different queries. - Redirect the output of SchemaCrawler into a file, by running
user-defined-query.cmd > file.txt
. - Try running an arbitrary query, following the instructions in the commandline example.