From b2d02b1dd1190e73002671e321e1cb1b1f440f5d Mon Sep 17 00:00:00 2001 From: wuyongning Date: Tue, 31 May 2022 16:11:28 +0800 Subject: [PATCH] delete api9 permission description Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 49 +---------------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index abee9e3e36..1d6469442e 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -83,6 +83,7 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @permission ohos.permission.DISTRIBUTED_DATASYNC */ enum SubscribeType { /** @@ -200,17 +201,9 @@ declare namespace rdb { /** * Set table to be distributed table. * - * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param tables the tables name you want to set - */ - /** - * Set table to be distributed table. - * - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param tables the tables name you want to set * @permission ohos.permission.DISTRIBUTED_DATASYNC */ setDistributedTables(tables: Array, callback: AsyncCallback): void; @@ -220,21 +213,10 @@ declare namespace rdb { * Obtain distributed table name of specified remote device according to local table name. * When query remote device database, distributed table name is needed. * - * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param device Indicates the remote device. * @param table Indicates the local table name. - * @return the distributed table name. - */ - /** - * Obtain distributed table name of specified remote device according to local table name. - * When query remote device database, distributed table name is needed. - * - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param device Indicates the remote device. - * @param table Indicates the local table name. * @permission ohos.permission.DISTRIBUTED_DATASYNC * @return the distributed table name. */ @@ -244,21 +226,11 @@ declare namespace rdb { /** * Sync data between devices * - * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. * @param predicates Constraint synchronized data and devices. * @param callback Indicates the callback used to send the synchronization result to the caller. - */ - /** - * Sync data between devices - * - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. - * @param predicates Constraint synchronized data and devices. - * @param callback Indicates the callback used to send the synchronization result to the caller. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback>): void; @@ -268,20 +240,10 @@ declare namespace rdb { * Registers an observer for the database. When data in the distributed database changes, * the callback will be invoked. * - * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. * @param observer Indicates the observer of data change events in the distributed database. - */ - /** - * Registers an observer for the database. When data in the distributed database changes, - * the callback will be invoked. - * - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. - * @param observer Indicates the observer of data change events in the distributed database. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ on(event: 'dataChange', type: SubscribeType, observer: Callback>): void; @@ -289,19 +251,10 @@ declare namespace rdb { /** * Remove specified observer of specified type from the database. * - * @deprecated since 9 * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. * @param observer Indicates the data change observer already registered. - */ - /** - * Remove specified observer of specified type from the database. - * - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. - * @param observer Indicates the data change observer already registered. * @permission ohos.permission.DISTRIBUTED_DATASYNC */ off(event:'dataChange', type: SubscribeType, observer: Callback>): void; -- Gitee