<div dir="ltr"><div>Hello,</div><div>I've made the ui for adding check constraints. Ive taken reference from qbe.</div><div>But it generates sql query in javascript in the file db_multi_table_query.js</div><div>I'm unsure whether I should generate the query on client or server side??</div><div>Any suggestions??</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 4, 2018 at 2:12 AM, Lakshay arora <span dir="ltr"><<a href="mailto:arora.lakshya123@gmail.com" target="_blank">arora.lakshya123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>I'm currently working on <a href="https://github.com/phpmyadmin/phpmyadmin/issues/13592" target="_blank">this</a>(Add support for CHECK constraints), as a part of my GSOC project.</div><div><br></div><div>As Isaac has written in his comment, this feature involves three parts. The order in which I want to work on this is the following - </div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">1. Implement an interface for interacting with these constraints</span><br></div><div>2. Update parser to understand this syntax</div><div>3. Update the export interface to allow including these in an export</div><div><br></div><div>For the first part-</div><div>I am thinking of implementing this something like query by example, </div><div>  - we show the operator in a select dropdown, and 2 options, to enter value or another column name</div><div>The constraints will be shown like indexes are, in the table structure, where there will be an option to delete or add new check constraint on the table.</div><div><br></div><div>For second and third parts-</div><div>Not sure yet.</div></div>
</blockquote></div><br></div>