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