Get the DDL from a live database and split them in files and directories
Python
Latest commit 9e8f0aa Mar 8, 2012 @dimitri Cleanup yesterday's code.

README

Usage: getddl [--version] [--help] [option ...] [schema ...]

Options:
  --version             show getddl version
  --help                show getddl help
  -a, --all             -rvsft
  -r, --tables          Extract Tables
  -v, --views           Extract Views
  -s, --sequences       Extract Sequences
  -f, --functions       Extract Functions
  -t, --triggers        Extract Triggers
  -R TABLESDIR, --tables-dir=TABLESDIR
                        Tables dir
  -V VIEWSDIR, --views-dir=VIEWSDIR
                        Views dir
  -S SEQUENCESDIR, --sequences-dir=SEQUENCESDIR
                        Sequences dir
  -F FUNCTIONSDIR, --functions-dir=FUNCTIONSDIR
                        Functions dir
  -T TRIGGERSDIR, --triggers-dir=TRIGGERSDIR
                        Triggers dir
  -d DB, --database=DB  Database to extract (mandatory)
  -h HOST, --host=HOST  hostname
  -p PORT, --port=PORT  TCP Port
  -U USERNAME, --username=USERNAME
                        DB User Name