Skip to content
Get the DDL from a live database and split them in files and directories
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
debian
sql
.gitignore
Makefile
README
getddl.1.txt
getddl.py

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
Something went wrong with that request. Please try again.