Re: JSON Function Bike Shedding

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: JSON Function Bike Shedding
Дата
Msg-id 511ABBBA.9090309@agliodbs.com
обсуждение исходный текст
Ответ на JSON Function Bike Shedding  ("David E. Wheeler" <david@justatheory.com>)
Ответы Re: JSON Function Bike Shedding  ("David E. Wheeler" <david@justatheory.com>)
Re: JSON Function Bike Shedding  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
David,

> However, I am not so keen on the function names. They all start with
> json_! This mostly feels redundant to me, since the types of the
> parameters are part of the function signature.

I have no opinion about starting the function names with json_ or not.
If we decide not, I agree that in general your proposed names are
reasonable.  Except:

> json_populate_record()
> record() or row() 

> json_populate_recordset()       records() or
> rows() 

Given that row() is already a type-agnostic function, and RECORD is a
stored procedure return meta-type, I think the above names would be a
mistake.  I'd suggest instead:

json_to_record() and json_to_recordset()
or:

to_record(json) and to_recordset(json)

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: JSON Function Bike Shedding
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: JSON Function Bike Shedding