how can I create the DML for an existing database - within an application

From: "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: how can I create the DML for an existing database - within an application
Date: 2006-04-13 05:50:13
Message-ID: 7be3f35d0604122250l5a408708me8d0d002f4d8e08c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want to get the output from

pg_dump --struct-only --table=whatever

inside a programm. Of course I could call pg_dump in a seperate process and
capture the output and all; but ...

as PGAdmin is doing it someway, I strongly suspect there is a kind of call
to recreate the DML language from a table in the database. Please give me a
hint!

--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
PostgreSQL - supported by a community that does not put you on hold

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2006-04-13 07:39:53 Re: how can I create the DML for an existing database - within an application
Previous Message Gregory S. Williamson 2006-04-13 05:45:47 Re: Truncate and Foreign Key Constraint question