Re: CRUD plpgsql generator

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: CRUD plpgsql generator
Дата
Msg-id BANLkTinStd6Py4S+g2GgFoDQ3Sg+SvFUOA@mail.gmail.com
обсуждение исходный текст
Ответ на CRUD plpgsql generator  (Wim Bertels <wim.bertels@khleuven.be>)
Ответы Re: CRUD plpgsql generator  (Rob Sargent <robjsargent@gmail.com>)
Re: CRUD plpgsql generator  (Wim Bertels <wim.bertels@khleuven.be>)
Список pgsql-general
On Wed, Jun 22, 2011 at 5:40 AM, Wim Bertels <wim.bertels@khleuven.be> wrote:
> Hallo,
>
> does anyone have know of a free CRUD generator
> for generating plpgsql functions for doing CRUD operations on all the
> tables of a database or schema or just one table or..
>
> cf
>
http://postgresql.1045698.n5.nabble.com/CRUD-functions-similar-to-SQL-stored-procedurs-for-postgresql-tables-td3372030.html
> http://myleshenderson.com/index.php/2007/11/16/postgresql-insert-function-generator

It wouldn't be that difficult to make one IMO, but are you sure you
really want to do this? ISTM it's a bit of an anti-pattern.  If I had
to do it, I would make a plpgsql function which would generate the
functions by querying information_schema and generating create
function statements via 'execute'.

merlin

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

Предыдущее
От: Misa Simic
Дата:
Сообщение: Re: unique across two tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] Where is pg_create_restore_point funciton in 9.1a2 ?