HamedMasafi / Nut

Advanced, Powerful and easy to use ORM for Qt
GNU Lesser General Public License v3.0
294 stars 75 forks source link

if have multi condition for where, how to write? #57

Closed ddmap2006 closed 4 years ago

ddmap2006 commented 4 years ago

auto posts = db.posts().query() ->whete(Post::idField() == 1 && Post::readFile()==false) ->orderBy(!Post::idField()) ->toList();

like above write two condition where is null. how to resolve

HamedMasafi commented 4 years ago

Can you explain a bit more? What you want to put into where clause? This code is correct and works