提交 e5e0b4d3 编写于 作者: S srr101

上标删除

Signed-off-by: Nsrr101 <songruirui1@huawei.com>
上级 89895472
...@@ -19,7 +19,7 @@ import dataSharePredicates from '@ohos.data.dataSharePredicates'; ...@@ -19,7 +19,7 @@ import dataSharePredicates from '@ohos.data.dataSharePredicates';
## DataSharePredicates ## DataSharePredicates
提供用于不同实现不同查询方法的数据共享谓词。该类型不是多线程安全的,如果应用中存在多线程同时操作该类派生出的实例,注意加锁保护。 提供用于不同实现不同查询方法的数据共享谓词。该类型不是多线程安全的,如果应用中存在多线程同时操作该类派生出的实例,注意加锁保护。
### equalTo<sup>10+</sup> ### equalTo
equalTo(field: string, value: ValueType): DataSharePredicates equalTo(field: string, value: ValueType): DataSharePredicates
...@@ -170,7 +170,7 @@ predicates.equalTo("NAME", "lisi") ...@@ -170,7 +170,7 @@ predicates.equalTo("NAME", "lisi")
.equalTo("NAME", "Rose") .equalTo("NAME", "Rose")
``` ```
### and<sup>10+</sup> ### and
and(): DataSharePredicates and(): DataSharePredicates
...@@ -645,7 +645,7 @@ let predicates = new dataSharePredicates.DataSharePredicates() ...@@ -645,7 +645,7 @@ let predicates = new dataSharePredicates.DataSharePredicates()
predicates.lessThanOrEqualTo("AGE", 50) predicates.lessThanOrEqualTo("AGE", 50)
``` ```
### orderByAsc<sup>10+</sup> ### orderByAsc
orderByAsc(field: string): DataSharePredicates orderByAsc(field: string): DataSharePredicates
...@@ -676,7 +676,7 @@ let predicates = new dataSharePredicates.DataSharePredicates() ...@@ -676,7 +676,7 @@ let predicates = new dataSharePredicates.DataSharePredicates()
predicates.orderByAsc("AGE") predicates.orderByAsc("AGE")
``` ```
### orderByDesc<sup>10+</sup> ### orderByDesc
orderByDesc(field: string): DataSharePredicates orderByDesc(field: string): DataSharePredicates
...@@ -732,7 +732,7 @@ let predicates = new dataSharePredicates.DataSharePredicates() ...@@ -732,7 +732,7 @@ let predicates = new dataSharePredicates.DataSharePredicates()
predicates.equalTo("NAME", "Rose").distinct() predicates.equalTo("NAME", "Rose").distinct()
``` ```
### limit<sup>10+</sup> ### limit
limit(total: number, offset: number): DataSharePredicates limit(total: number, offset: number): DataSharePredicates
...@@ -826,7 +826,7 @@ let predicates = new dataSharePredicates.DataSharePredicates() ...@@ -826,7 +826,7 @@ let predicates = new dataSharePredicates.DataSharePredicates()
predicates.indexedBy("SALARY_INDEX") predicates.indexedBy("SALARY_INDEX")
``` ```
### in<sup>10+</sup> ### in
in(field: string, value: Array&lt;ValueType&gt;): DataSharePredicates in(field: string, value: Array&lt;ValueType&gt;): DataSharePredicates
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册