From 272f620ed73dbc7deec0f45917df5580a0f60ebf Mon Sep 17 00:00:00 2001 From: wufengshan Date: Sat, 19 Mar 2022 16:40:32 +0800 Subject: [PATCH] Update Docs Signed-off-by: wufengshan --- .../apis/js-apis-distributed-data.md | 283 +++++++++--------- 1 file changed, 141 insertions(+), 142 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md index 125466cfa7..0d2a5d3d86 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md @@ -15,7 +15,7 @@ import distributedData from '@ohos.data.distributedData'; ## distributedData.createKVManager -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**:SystemCapability.DistributedDataManager.KVStore.Core。 createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager>): void @@ -56,7 +56,7 @@ createKVManager(config: KVManagerConfig, callback: AsyncCallback<KVManager> ## distributedData.createKVManager -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 createKVManager(config: KVManagerConfig): Promise<KVManager> @@ -136,18 +136,18 @@ createKVManager(config: KVManagerConfig): Promise<KVManager> ## KVManager -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 数据管理实例,用于获取KVStore的相关信息。在调用KVManager的方法前,需要先通过createKVManager构建一个KVManager实例。 ### getKVStore -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 - getKVStore<T extends KVStore>(storeId: string, options: Options, callback: AsyncCallback<T>): void 通过指定Options和storeId,创建并获取KVStore数据库,并通过callback方式返回,此方法为异步方法。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 + - 参数: | 参数名 | 参数类型 | 必填 | 说明 | @@ -186,13 +186,12 @@ getKVStore<T extends KVStore>(storeId: string, options: Options, callback: ### getKVStore -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 - - getKVStore<T extends KVStore>(storeId: string, options: Options): Promise<T> 通过指定Options和storeId,创建并获取KVStore数据库,并通过Promise方式返回,此方法为异步方法。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 + - 参数: | 参数名 | 参数类型 | 必填 | 说明 | @@ -239,7 +238,7 @@ closeKVStore(appId: string, storeId: string, kvStore: KVStore, callback: AsyncCa 通过storId的值关闭指定的kvStore数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -285,7 +284,7 @@ closeKVStore(appId: string, storeId: string, kvStore: KVStore): Promise<void& 通过kvStore的值关闭指定的kvStore数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -339,7 +338,7 @@ deleteKVStore(appId: string, storeId: string, callback: AsyncCallback<void> 通过storeId的值删除指定的kvStore数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -383,7 +382,7 @@ deleteKVStore(appId: string, storeId: string): Promise<void> 通过storeId的值删除指定的kvStore数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -437,7 +436,7 @@ getAllKVStoreId(appId: string, callback: AsyncCallback<string[]>): void 获取所有通过getKvStore方法创建的且没有调用deleteKvStore方法删除的KvStore数据库的storeId,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -467,7 +466,7 @@ getAllKVStoreId(appId: string): Promise<string[]> 获取所有通过getKvStore方法创建的且没有调用deleteKvStore方法删除的KvStore数据库的storeId,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -506,7 +505,7 @@ on(event: 'distributedDataServiceDie', deathCallback: Callback<void>): voi 订阅服务状态变更通知,并通过callback方式返回,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -540,7 +539,7 @@ off(event: 'distributedDataServiceDie', deathCallback?: Callback<void>): v 取消订阅服务状态变更通知,并通过callback方式返回,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -634,13 +633,12 @@ KVStore常量。 **系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - -| 名称 | | 说明 | +| 名称 | 类型 | 说明 | | --- | ---- | ----------------------- | -| root8+ | | 表示json根对象 | -| indexes8+ | | 表示json类型的字符串数组。 | -| mode8+ | | 表示Schema的模式。 | -| skip8+ | | Schema的跳跃大小。 | +| root8+ | [FieldNode](#FieldNode) | 表示json根对象 | +| indexes8+ | Array | 表示json类型的字符串数组。 | +| mode8+ | number | 表示Schema的模式。 | +| skip8+ | number | Schema的跳跃大小。 | ### constructor8+ ### @@ -648,7 +646,7 @@ constructor() 用于创建Schema实例的构造函数。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 ## FieldNode8+ ## @@ -656,10 +654,11 @@ constructor() **系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 -| 名称 | | 说明 | +| 名称 | 类型 | 说明 | | --- | ---- | ----------------------- | -| nullable9+ | | 表示数据库字段可以为空。 | -| default9+ | | 表示fieldnode的默认值。 | +| nullable8+ | boolean | 表示数据库字段是否可以为空。 | +| default8+ | string | 表示fieldnode的默认值。 | +| type8+ | number | 表示值。 | ### constructor8+ ### @@ -667,13 +666,13 @@ constructor(name: string) 用于创建带有string字段FieldNode实例的构造函数。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: | 参数名 | 参数类型 | 必填 | 说明 | | ----- | ------ | ---- | ----------------------- | -| name | string | 是 | 要定义的字段名。 +| name | string | 是 | FieldNode的值。 ### appendChild8+ ### @@ -681,7 +680,7 @@ appendChild(child: FieldNode): boolean 向这个 FieldNode 添加一个子节点。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -725,7 +724,7 @@ appendChild(child: FieldNode): boolean 提供获取KvStore数据库结果集的方法,提供查询和移动数据读取位置的方法,在调用KvStoreResultSet的方法前,需要先通过KvStore 构建一个KvStore 实例。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 ### getCount8+ ### @@ -733,7 +732,7 @@ getCount(): number 获取结果集中的行数。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -767,7 +766,7 @@ getPosition(): number 获取结果集中当前的读取位置。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -801,7 +800,7 @@ moveToFirst(): boolean 将读取位置移动到第一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -835,7 +834,7 @@ moveToLast(): boolean 将读取位置移动到最后一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -869,7 +868,7 @@ moveToNext(): boolean 将读取位置移动到下一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -903,7 +902,7 @@ moveToPrevious(): boolean 将读取位置移动到上一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -937,7 +936,7 @@ move(offset: number): boolean 将读取位置移动到当前位置的相对偏移量。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -977,7 +976,7 @@ moveToPosition(position: number): boolean 将读取位置从 0 移动到绝对位置。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1017,7 +1016,7 @@ isFirst(): boolean 检查读取位置是否为第一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1051,7 +1050,7 @@ isLast(): boolean 检查读取位置是否为最后一行。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1085,7 +1084,7 @@ isBeforeFirst(): boolean 检查读取位置是否在第一行之前。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1119,7 +1118,7 @@ isAfterLast(): boolean 检查读取位置是否在最后一行之后。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1153,7 +1152,7 @@ getEntry(): Entry 获取键值对 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1186,7 +1185,7 @@ getEntry(): Entry 使用谓词表示数据库查询,提供创建Query实例、查询数据库中的数据和添加谓词的方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 ### constructor8+ ### @@ -1194,7 +1193,7 @@ constructor() 用于创建Schema实例的构造函数 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 ### reset8+ ### @@ -1203,7 +1202,7 @@ reset(): Query 公共查询重置。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1234,7 +1233,7 @@ equalTo(field: string, value: number|string|boolean): Query; 构造一个Query对象来查询具有指定字段的条目,其值等于指定的值。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1269,7 +1268,7 @@ notEqualTo(field: string, value: number|string|boolean): Query 构造一个Query对象以查询具有指定字段且值不等于指定值的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1304,7 +1303,7 @@ greaterThan(field: string, value: number|string|boolean): Query 构造一个Query对象以查询具有大于指定值的指定字段的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1339,7 +1338,7 @@ lessThan(field: string, value: number|string): Query 构造一个Query对象以查询具有小于指定值的指定字段的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1374,7 +1373,7 @@ greaterThanOrEqualTo(field: string, value: number|string): Query 构造一个Query对象以查询具有指定字段且值大于或等于指定值的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1409,7 +1408,7 @@ lessThanOrEqualTo(field: string, value: number|string): Query 构造一个Query对象以查询具有指定字段且值小于或等于指定值的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1445,7 +1444,7 @@ isNull(field: string): Query 构造一个Query对象以查询具有值为null的指定字段的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1480,7 +1479,7 @@ inNumber(field: string, valueList: number[]): Query 构造一个Query对象以查询具有指定字段的条目,其值在指定的值列表中。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1516,7 +1515,7 @@ inString(field: string, valueList: string[]): Query 构造一个Query对象以查询具有指定字段的条目,其值在指定的字符串值列表中。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1551,7 +1550,7 @@ notInNumber(field: string, valueList: number[]): Query 构造一个Query对象以查询具有指定字段的条目,该字段的值不在指定的值列表中。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1621,7 +1620,7 @@ like(field: string, value: string): Query 构造一个Query对象以查询具有与指定字符串值相似的指定字段的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1656,7 +1655,7 @@ unlike(field: string, value: string): Query 构造一个Query对象以查询具有与指定字符串值不相似的指定字段的条目。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1691,7 +1690,7 @@ and(): Query 构造一个带有与条件的查询对象。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1721,7 +1720,7 @@ or(): Query 构造一个带有或条件的Query对象。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1751,7 +1750,7 @@ orderByAsc(field: string): Query 构造一个Query对象,将查询结果按升序排序。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1786,7 +1785,7 @@ orderByDesc(field: string): Query 构造一个Query对象,将查询结果按降序排序。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1822,7 +1821,7 @@ limit(total: number, offset: number): Query 构造一个Query对象来指定结果的数量和开始位置。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1858,7 +1857,7 @@ isNotNull(field: string): Query 使用不为空的指定字段创建查询条件。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1892,7 +1891,7 @@ beginGroup(): Query 创建一个带有左括号的查询条件组。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1922,7 +1921,7 @@ endGroup(): Query 创建一个带有右括号的查询条件组。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -1952,7 +1951,7 @@ prefixKey(prefix: string): Query 创建具有指定键前缀的查询条件。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -1987,7 +1986,7 @@ setSuggestIndex(index: string): Query 设置一个指定的索引,将优先用于查询。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2022,7 +2021,7 @@ deviceId(deviceId:string):Query 添加设备ID作为key的前缀。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2056,7 +2055,7 @@ getSqlLike():string 获取指定Query对象的查询语句。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -2081,7 +2080,7 @@ getSqlLike():string KVStore数据库实例,提供增加数据、删除数据和订阅数据变更、订阅同步完成的方法。在调用KVStore的方法前,需要先通过getKVStore构建一个KVStore实例。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 ### put @@ -2089,7 +2088,7 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC 添加指定类型键值对到数据库,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2125,7 +2124,7 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise<void 添加指定类型键值对到数据库,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2165,7 +2164,7 @@ delete(key: string, callback: AsyncCallback<void>): void 从数据库中删除指定键值的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2207,7 +2206,7 @@ delete(key: string): Promise<void> 从数据库中删除指定键值的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2250,7 +2249,7 @@ on(event: 'dataChange', type: SubscribeType, observer: Callback<ChangeNotific 订阅指定类型的数据变更通知,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2277,7 +2276,7 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> 订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2302,7 +2301,7 @@ off(event:'dataChange', observer?: Callback<ChangeNotification>): void 取消订阅数据变更通知,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2330,7 +2329,7 @@ putBatch(entries: Entry[], callback: AsyncCallback<void>): void 批量插入键值对到KvStore数据库中,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2378,7 +2377,7 @@ putBatch(entries: Entry[]): Promise<void> 批量插入键值对到KvStore数据库中,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2433,7 +2432,7 @@ deleteBatch(keys: string[], callback: AsyncCallback<void>): void 批量删除KvStore数据库中的键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2480,7 +2479,7 @@ deleteBatch(keys: string[]): Promise<void> 批量删除键值对到KvStore数据库中,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2536,7 +2535,7 @@ startTransaction(callback: AsyncCallback<void>): void 启动KvStore数据库中的事务,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2588,7 +2587,7 @@ startTransaction(): Promise<void> 启动KvStore数据库中的事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -2623,7 +2622,7 @@ commit(callback: AsyncCallback<void>): void 提交KvStore数据库中的事务,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2655,7 +2654,7 @@ commit(): Promise<void> 提交KvStore数据库中的事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -2685,7 +2684,7 @@ rollback(callback: AsyncCallback<void>): void 在KvStore数据库中回滚事务,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2717,7 +2716,7 @@ rollback(): Promise<void> 在KvStore数据库中回滚事务,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -2747,7 +2746,7 @@ enableSync(enabled: boolean, callback: AsyncCallback<void>): void 设定是否开启同步,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2780,7 +2779,7 @@ enableSync(enabled: boolean): Promise<void> 设定是否开启同步,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2816,7 +2815,7 @@ setSyncRange(localLabels: string[], remoteSupportLabels: string[], callback: Asy 设置同步范围标签,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2848,7 +2847,7 @@ setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise<v 设置同步范围标签,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2951,7 +2950,7 @@ setSyncRange(localLabels: string[], remoteSupportLabels: string[]): Promise<v 单版本分布式数据库,继承自KVStore,提供查询数据和同步数据的方法。在调用 SingleKVStore 的方法前,需要先通过 getKVStore 构建一个 SingleKVStore 实例。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 ### get @@ -2959,7 +2958,7 @@ get(key: string, callback: AsyncCallback<Uint8Array | string | boolean | numb 获取指定键的值,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -2997,7 +2996,7 @@ get(key: string): Promise<Uint8Array | string | boolean | number> 获取指定键的值,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3041,7 +3040,7 @@ getEntries(keyPrefix: string, callback: AsyncCallback<Entry[]>): void 获取匹配指定键前缀的所有键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3087,7 +3086,7 @@ getEntries(keyPrefix: string): Promise<Entry[]> 获取匹配指定键前缀的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3145,7 +3144,7 @@ getEntries(query: Query, callback: AsyncCallback<Entry[]>): void 获取与指定 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3196,7 +3195,7 @@ getEntries(query: Query): Promise<Entry[]> 获取匹配指定键前缀的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core - 参数: @@ -3253,7 +3252,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KvStoreResultSet>) 从 KvStore 数据库中获取具有指定前缀的结果集,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3302,7 +3301,7 @@ getResultSet(keyPrefix: string): Promise<KvStoreResultSet> 从 KvStore 数据库中获取具有指定前缀的结果集,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3362,7 +3361,7 @@ getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): voi 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3410,7 +3409,7 @@ getResultSet(query: Query): Promise<KvStoreResultSet> 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3466,7 +3465,7 @@ closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>) 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3500,7 +3499,7 @@ closeResultSet(resultSet: KvStoreResultSet): Promise<void> 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3537,7 +3536,7 @@ getResultSize(query: Query, callback: AsyncCallback<number>): void 获取与指定 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3583,7 +3582,7 @@ getResultSize(query: Query): Promise<number> 获取与指定 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3638,7 +3637,7 @@ removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void 删除指定设备的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3680,7 +3679,7 @@ removeDeviceData(deviceId: string): Promise<void> 删除指定设备的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3729,7 +3728,7 @@ on(event: 'syncComplete', syncCallback: Callback<Array<[string, number]> 订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3765,7 +3764,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]& 取消订阅同步完成事件回调通知,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3797,7 +3796,7 @@ sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void 在手动模式下,触发数据库同步,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3820,7 +3819,7 @@ setSyncParam(defaultAllowedDelayMs: number, callback: AsyncCallback<void>) 设置允许数据库同步的默认延迟,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3851,7 +3850,7 @@ setSyncParam(defaultAllowedDelayMs: number): Promise<void> 设置允许数据库同步的默认延迟,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3889,7 +3888,7 @@ getSecurityLevel(callback: AsyncCallback<SecurityLevel>): void 获取数据库的安全级别,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -3917,7 +3916,7 @@ getSecurityLevel(): Promise<SecurityLevel> 获取数据库的安全级别,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 返回值: @@ -3946,7 +3945,7 @@ getSecurityLevel(): Promise<SecurityLevel> 在分布式系统中按设备管理分布式数据,继承自KvStore,提供查询数据和同步数据的方法。在调用DeviceKVStore的方法前,需要先通过getKVStore构建一个DeviceKVStore实例。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 ### get8+ ### @@ -3954,7 +3953,7 @@ get(deviceId: string, key: string, callback: AsyncCallback<boolean|string|num 获取与指定设备 ID 和 key 匹配的 String 值,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -3990,7 +3989,7 @@ get(deviceId: string, key: string): Promise<boolean|string|number|Uint8Array& 获取与指定设备 ID 和 key 匹配的 String 值,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4034,7 +4033,7 @@ getEntries(deviceId: string, keyPrefix: string, callback: AsyncCallback<Entry 获取与指定设备 ID 和 key 前缀匹配的所有键值对,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4082,7 +4081,7 @@ getEntries(deviceId: string, keyPrefix: string): Promise<Entry[]> 获取与指定设备 ID 和 key 前缀匹配的所有键值对,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4141,7 +4140,7 @@ getEntries(query: Query, callback: AsyncCallback<Entry[]>): void 获取与指定 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4194,7 +4193,7 @@ getEntries(query: Query): Promise<Entry[]> 获取与指定 Query 对象匹配的键值对列表,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4252,7 +4251,7 @@ getEntries(deviceId: string, query: Query, callback: AsyncCallback<Entry[]> 获取与指定设备 ID 和 Query 对象匹配的键值对列表,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4306,7 +4305,7 @@ getEntries(deviceId: string, query: Query): Promise<Entry[]> 获取与指定设备 ID 和 Query 对象匹配的键值对列表,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4366,7 +4365,7 @@ getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KvS 获取与指定设备 ID 和 key 前缀匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4401,7 +4400,7 @@ getResultSet(deviceId: string, keyPrefix: string): Promise<KvStoreResultSet&g 获取与指定设备 ID 和 key 前缀匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4445,7 +4444,7 @@ getResultSet(query: Query, callback: AsyncCallback<KvStoreResultSet>): voi 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4497,7 +4496,7 @@ getResultSet(query: Query): Promise<KvStoreResultSet> 获取与指定 Query 对象匹配的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4561,7 +4560,7 @@ getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KvStoreR 获取与指定设备ID和Query对象匹配的KvStoreResultSet对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4613,7 +4612,7 @@ getResultSet(deviceId: string, query: Query): Promise<KvStoreResultSet> 获取与指定设备ID和Query对象匹配的KvStoreResultSet对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4679,7 +4678,7 @@ closeResultSet(resultSet: KvStoreResultSet, callback: AsyncCallback<void>) 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4714,7 +4713,7 @@ closeResultSet(resultSet: KvStoreResultSet): Promise<void> 关闭由 getResultSet 返回的 KvStoreResultSet 对象,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4752,7 +4751,7 @@ getResultSize(query: Query, callback: AsyncCallback<number>): void 获取与指定 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4799,7 +4798,7 @@ getResultSize(query: Query): Promise<number> 获取与指定 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4855,7 +4854,7 @@ getResultSize(deviceId: string, query: Query, callback: AsyncCallback<number& 获取与指定设备 ID 和 Query 对象匹配的结果数,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4902,7 +4901,7 @@ getResultSize(deviceId: string, query: Query): Promise<number> 获取与指定设备 ID 和 Query 对象匹配的结果数,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -4958,7 +4957,7 @@ removeDeviceData(deviceId: string, callback: AsyncCallback<void>): void 从当前数据库中删除指定设备的数据,并通过callback方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -5000,7 +4999,7 @@ removeDeviceData(deviceId: string): Promise<void> 从当前数据库中删除指定设备的数据,并通过Promise方式返回,此方法为异步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.DistributedKVStore。 - 参数: @@ -5049,7 +5048,7 @@ sync(deviceIdList: string[], mode: SyncMode, allowedDelayMs?: number): void 在手动模式下,触发数据库同步,此方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -5087,7 +5086,7 @@ on(event: 'syncComplete', syncCallback: Callback<Arrary<[string, number]&g 订阅同步完成事件回调通知,该方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: @@ -5121,7 +5120,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]& 取消订阅同步完成事件回调通知,该方法为同步方法。 -**系统能力**:以下各项对应的系统能力均为 SystemCapability.DistributedDataManager.KVStore.Core。 +**系统能力**: SystemCapability.DistributedDataManager.KVStore.Core。 - 参数: -- GitLab