SchemaCrawler - Python Scripting Example
Description
SchemaCrawler allows scripting with database metadata, using Python. This example shows how to script with Python.
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
pythonexample directory - Run
python.cmd tables.py(orpython.sh tables.pyon Unix)
How to Experiment
- Run
python.cmd droptables.py(orpython.sh droptables.pyon Unix). (In order to restore the database, restart the database server.) - Try modifying the Python in the *.py files to do different things. You also have access to a live database connection.