You are not logged in Log in Join
You are here: Home » Members » Andreas Heckel » PostgreSQL Database Utility » swpackage_view

Log in
Name

Password

 
 

PostgreSQL Database Utility

Depending on referential integrities ZPostgresUtils generates a database diagram.
At this time ZPostgresUtils is a ZClass based product.
It works with RDBMS PostgreSQL 7.0 or later.

Assuming you setup the following tables ...

CREATE TABLE title (
 titleid SERIAL NOT NULL,
 title character varying(50))

CREATE TABLE customer (
 customerid SERIAL NOT NULL,
 name character varying(75),
 city character varying(50),
 street character varying(75),
 phone character varying(20),
 fax character varying(20))

CREATE TABLE orders (
 orderid SERIAL NOT NULL,
 customerid int4 NOT NULL REFERENCES customer (customerid) ON DELETE RESTRICT ON UPDATE CASCADE INITIALLY DEFERRED,
 what character varying(60),
 deadline date)

CREATE TABLE invoice (
 invoiceid SERIAL NOT NULL,
 orderid int4 NOT NULL CONSTRAINT fororders REFERENCES orders (orderid) MATCH FULL ON DELETE RESTRICT ON UPDATE CASCADE,
 amount float8)

... you will get this output:

Tables and Views with referential integrity definition
customer
customerid
orders
orderid
invoice
invoiceidorderidamount
customeridwhatdeadline
namecitystreetphonefax


Tables and Views without any referential integrity definition
NameTypeFields
titletabletitleid,title,


Referential integrities

TableSource TableSource FieldDestination TableDestination Fieldis Foreign Key Descr.DeferrableInitially DeferredConstraint NameMATCH
customercustomercustomeridorderscustomerid0ON DELETE RESTRICTff UNSPECIFIED
customercustomercustomeridorderscustomerid0ON UPDATE CASCADEtt UNSPECIFIED
ordersordersorderidinvoiceorderid0ON DELETE RESTRICTff forordersFULL
ordersordersorderidinvoiceorderid0ON UPDATE CASCADEff forordersFULL
orderscustomercustomeridorderscustomerid1FOREIGN KEY ... REFERENCEStt UNSPECIFIED
invoiceordersorderidinvoiceorderid1FOREIGN KEY ... REFERENCESff forordersFULL

Latest Release: 0.0.1a
Last Updated: 2000-12-22 17:05:43
Author: ZopeOrgSite
Categories: External Access, Helpers, Statistics and Analysis
Maturity: Development

Available Releases

Version Maturity Platform Released
0.0.1a Development   2000-12-22 17:05:43
  ZPostgresUtils-0.0.1a.tar.gz (8 K) All