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

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: how can I create the DML for an existing database - within an application
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA352A2@algol.sollentuna.se
обсуждение исходный текст
Ответ на how can I create the DML for an existing database - within an application  ("Harald Armin Massa" <haraldarminmassa@gmail.com>)
Список 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!

AFAIK, pgadmin opens a pipe to pg_dump.

//Magnus

В списке pgsql-general по дате отправления:

Предыдущее
От: "Harald Armin Massa"
Дата:
Сообщение: how can I create the DML for an existing database - within an application
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: how can I create the DML for an existing database - within an application