Skip to content

Commit

Permalink
add orm endsub
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Jan 2, 2024
1 parent 9b7de1c commit 2388f47
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vendor/httpserver/include/mysqlmodel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,17 @@ class mysqlclientDB : public base
return *mod;
}

model &endsub()
{
if (iskuohao == true)
{
iskuohao = false;
ishascontent = false;
wheresql.append(" )");
}
return *mod;
}

model &limit(unsigned int num)
{
limitsql.clear();
Expand Down

0 comments on commit 2388f47

Please sign in to comment.