SchemaCrawler - Groovy Scripting Example
Description
SchemaCrawler allows scripting with database metadata, using Groovy. This example shows how to script with Groovy.
How to Setup
- Make sure that java is on your PATH
- Start a command shell in the
_downloaderdirectory - Run
download.cmd groovy(ordownload.sh groovyon Unix) to install Groovy scripting support
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 command shell in the
groovyexample directory - Run
groovy.cmd tables.groovy(orgroovy.sh tables.groovyon Unix)
How to Experiment
- Run
groovy.cmd droptables.groovy(orgroovy.sh droptables.groovyon Unix). (In order to restore the database, restart the database server.) - Try modifying the Groovy in the *.groovy files to do different things. You also have access to a live database connection.