操作符
支持的比较运算符
| 运算符 | 说明 | Mysql 等效操作符 | 示例 |
|---|---|---|---|
eq | 等于 | = | /table?id=eq.1 |
neq | 不等于 | != | /table?id=neq.1 |
gt | 大于 | > | /table?age=gt.18 |
gte | 大于等于 | >= | /table?age=gte.18 |
lt | 小于 | < | /table?age=lt.35 |
lte | 小于等于 | <= | /table?age=lte.35 |
like | 模糊匹配 | like | /table?name=like.%value% |
in | 包含 | in | /table?id=in.[1,2,3] |
is | 为空 | is | /table?age=is.null 或 /table?age=is.unknown |
match | 正则匹配 | regexp | /table?name=match.^[a-zA-Z]+$ |
支持的逻辑运算符
| 运算符 | 说明 | Mysql 等效操作符 | 示例 |
|---|---|---|---|
and | 逻辑与 | and | /table?id=eq.1&age=gt.18 以及 /table?select=*&and=(age.gt.18,age.lt.35) |
or | 逻辑或 | or | /table?select=*&or=(id.eq.1,name.like.%value%) |
not | 逻辑非 | not | /table?select=*&age=not.eq.18&gender=not.is.null&isTrue=not.is.true |