Re: syntax sugar for conditional check
От | David G. Johnston |
---|---|
Тема | Re: syntax sugar for conditional check |
Дата | |
Msg-id | CAKFQuwZ30Pk0OCeW3qv7DttXfc1nnRCq+Roci=ckXHip20W_Ng@mail.gmail.com обсуждение исходный текст |
Ответ на | syntax sugar for conditional check (Alexander Ostrow <aj@epcylon.com>) |
Ответы |
Re: syntax sugar for conditional check
|
Список | pgsql-hackers |
Hello,I thought it would be cool to have conditional check syntax, which gets converted to simple check constraint syntax.Here’s a gist:It’s just sugar, but i think it would make check constraints easier to read, and easier to write without backwards boolean logic.
For future reference please make every effort to make emails to the list self-contained - which has the added benefit of avoid link expiration in the future.
As to the recommendation at hand - I don't see significant value in implementing non-SQL Standard syntax in this area.
David J.
В списке pgsql-hackers по дате отправления: