diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 985f98ff2af0eb1ae025a2128e575912c26f7499..e86bfd16e51df578e97849b090f3087679406cd6 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -84,6 +84,7 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @permission ohos.permission.DISTRIBUTED_DATASYNC */ enum SubscribeType { /** @@ -239,17 +240,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; @@ -259,21 +252,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. */ @@ -283,21 +265,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; @@ -307,20 +279,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; @@ -328,19 +290,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;