The following examples demonstrate how the various dblook utility options can be specified from a command line. These examples use the sample database.
Status messages are written to the output (either a -o filename, if specified, or the console) as SQL script comments. These status messages serve as headers to show which types of database objects are being, or have been, processed by the dblook utility.
java org.apache.derby.tools.dblook -d jdbc:derby:sample
java org.apache.derby.tools.dblook -d jdbc:derby:sample -verbose
java org.apache.derby.tools.dblook -d jdbc:derby:sample -o myDB_DDL.sql
java org.apache.derby.tools.dblook -d 'jdbc:derby:c:\private\stuff\sample' -o 'C:\temp\newDB.sql'
java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp
java org.apache.derby.tools.dblook -d 'jdbc:derby://localhost:1527/"C:\temp\sample"; user=someusername;password=somepassword' -z samp
java org.apache.derby.tools.dblook -d jdbc:derby:sample -z samp -t "My Table"
java org.apache.derby.tools.dblook -d jdbc:derby:sample -t "My Table" staff
java org.apache.derby.tools.dblook -d jdbc:derby:sample -o myDB_DDL.sql -td '' -append
java org.apache.derby.tools.dblook -d jdbc:derby:sample -noview