r1 - 19 Oct 2006 - 00:44:17 - VinubalajiGopalYou are here: OSAF >  Journal Web  > CosmopgAutodoc

Database Schema using PostgreSQL Autodoc

This Postgresql Autodoc is a nice tool which constructs a dot file and other files based on the database schema. You can run it the same way as you will run any of the pg commands, but it requires you to type the password in the command line using the --password option:

#bash# postgresql_autodoc -h localhost -d cosmo -u test --password=test

The above command will generate lots of files in different format (dia, html, dot). Of particular interest will be the dot file which can be used to create any kind of image file (gif, png, jpeg, etc). The dot utility will allow you to convert this cosmo.dot file into a png file: #bash# dot -Tpng cosmo.dot > cosmo.png

An example of the complete schema is shown below:

  • Cosmo Schema (the one hibernate generates for us) using postgresql autodoc
    cosmo.png

-- VinubalajiGopal - 19 Oct 2006

toggleopenShow attachmentstogglecloseHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
pngpng cosmo.png manage 61.8 K 19 Oct 2006 - 00:42 VinubalajiGopal  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.