syntax sugar for conditional check
От | Alexander Ostrow |
---|---|
Тема | syntax sugar for conditional check |
Дата | |
Msg-id | 61B8D172-D35A-4715-A793-6EFDD2795E5D@epcylon.com обсуждение исходный текст |
Ответы |
Re: syntax sugar for conditional check
Re: syntax sugar for conditional check |
Список | pgsql-hackers |
Hello, <div class=""><div class=""><br class="" /></div><div class="">I thought it would be cool to have conditional checksyntax, which gets converted to simple check constraint syntax. </div><div class=""><br class="" /></div><div class="">Here’sa gist:</div><div class=""><br class="" /></div><div class=""><a class="" href="https://gist.github.com/aj0strow/5a07f2ddcad324c4dac2c4095c821999">https://gist.github.com/aj0strow/5a07f2ddcad324c4dac2c4095c821999</a></div><div class=""><brclass="" /></div><div class="">It’s just sugar, but i think it would make check constraints easier to read, andeasier to write without backwards boolean logic. </div><div class=""><br class="" /></div><div class="">Thank you,</div><divclass=""><br class="" /></div></div><div class="">AJ</div><div class=""><br class="" /></div>
В списке pgsql-hackers по дате отправления: