SchemaCrawler - JavaScript Example
Description
SchemaCrawler allows scripting with database metadata, using JavaScript. This example shows how to script with JavaScript.
How to Setup
- Make sure that SchemaCrawler is installed on your system
- Make sure that
schemacrawleris on your PATH
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 javascript example directory
- Run
javascript.cmd tables.js(orjavascript.sh tables.json Unix)
How to Experiment
- Run
javascript.cmd droptables.js(orjavascript.sh droptables.json Unix). (In order to restore the database, restart the database server.) - Try modifying the JavaScript in the *.js files to do different things, including generating exceptions.