Re: Generating an XSD file from an existing database

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Generating an XSD file from an existing database
Дата
Msg-id 30471996-D44F-4C6E-8058-6EFF9927C4D7@gmail.com
обсуждение исходный текст
Ответ на Generating an XSD file from an existing database  (Blake McBride <blake1024@gmail.com>)
Ответы Re: Generating an XSD file from an existing database  (Blake McBride <blake1024@gmail.com>)
Список pgsql-general
> On Dec 6, 2015, at 2:30 PM, Blake McBride <blake1024@gmail.com> wrote:
>
> Greetings,
>
> I need an XML specification for my exiting schema - an XSD file.  Reading the docs I see schema_to_xml but I do not
understand:
>
> A.  Will that produce the XSD file I seek?
>
> B.  I do not understand the documentation.  Can I do this through psql?  I need an exact example if possible.
>
> Thank you.
>
> Blake McBride
>
Yes, those functions are available through psql
select schema_to_xml(<arglist>)
and
select schema_to_xmlschema(<arglist>) are what you’re after.

Redirect the output  of each into separate files.




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

Предыдущее
От: Blake McBride
Дата:
Сообщение: Generating an XSD file from an existing database
Следующее
От: Blake McBride
Дата:
Сообщение: Re: Generating an XSD file from an existing database