auraphp / Aura.SqlQuery

Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.
MIT License
452 stars 86 forks source link

Support 'grouping' of where() and having() conditions #136

Closed pmjones closed 7 years ago

pmjones commented 7 years ago

This allows for where(function ($select) {...} ), and put parens around the resulting conditions.

References #121 .

harikt commented 7 years ago

Brilliantly done. One two emojis missing which we don't need for this.

Great work!.

Thank you for your efforts.

harikt commented 7 years ago

Oh may be we need a test for having also ?

pmjones commented 7 years ago

Brilliantly done.

You're kind. :-)

Oh may be we need a test for having also ?

I was going to say "both where() and having() lead to the same methods" -- but then, it can't hurt, so I'll add one.