mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 03:38:03 +08:00
Add the 'like' to the Criteria class
This commit is contained in:
parent
a7f82face0
commit
e8fcc49c37
@ -19,6 +19,7 @@ addons:
|
||||
- uuid-dev
|
||||
- zlib1g-dev
|
||||
- postgresql-server-dev-10
|
||||
- libmariadbclient-dev
|
||||
- openssl
|
||||
- libssl-dev
|
||||
- build-essential
|
||||
@ -30,6 +31,7 @@ addons:
|
||||
- libtool
|
||||
- lz4
|
||||
- postgresql
|
||||
- mariadb
|
||||
|
||||
script:
|
||||
- ./build.sh
|
||||
|
@ -33,6 +33,7 @@ enum class CompareOperator
|
||||
GE,
|
||||
LT,
|
||||
LE,
|
||||
LIKE,
|
||||
IsNull,
|
||||
IsNotNull
|
||||
};
|
||||
@ -67,6 +68,9 @@ class Criteria
|
||||
case CompareOperator::LE:
|
||||
_condString += " <= $?";
|
||||
break;
|
||||
case CompareOperator::LIKE:
|
||||
_condString += " like $?";
|
||||
break;
|
||||
case CompareOperator::IsNull:
|
||||
case CompareOperator::IsNotNull:
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user