From b1f6a11357f1f111e0f8f1305092f5ef68d871ae Mon Sep 17 00:00:00 2001 From: lihuihui Date: Tue, 10 Jan 2023 14:36:15 +0800 Subject: [PATCH] sdk master Signed-off-by: lihuihui --- api/@ohos.data.rdb.d.ts | 8 ++++---- api/@ohos.data.relationalStore.d.ts | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 7d21733e51..6b31955e3c 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -276,7 +276,7 @@ declare namespace rdb query(predicates: RdbPredicates, columns ?: Array): Promise; /** - * Deletes data from the database based on a specified instance object of RdbPredicates. + * Queries data in the database based on SQL statement. * * @param {string} sql - Indicates the SQL statement to execute. * @param {Array} bindArgs - Indicates the {@link ValueType} values of the parameters in the SQL statement. The values are strings. @@ -289,7 +289,7 @@ declare namespace rdb querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void; /** - * Deletes data from the database based on a specified instance object of RdbPredicates. + * Queries data in the database based on SQL statement. * * @param {string} sql - Indicates the SQL statement to execute. * @param {Array} bindArgs - Indicates the {@link ValueType} values of the parameters in the SQL statement. The values are strings. @@ -442,7 +442,7 @@ declare namespace rdb * the callback will be invoked. * * @param {string} event - Indicates the event must be string 'dataChange'. - * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}. + * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}.If its value is SUBSCRIBE_TYPE_REMOTE, ohos.permission.DISTRIBUTED_DATASYNC is required. * @param {AsyncCallback>} observer - {Array}: the observer of data change events in the distributed database. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 8 @@ -455,7 +455,7 @@ declare namespace rdb * Remove specified observer of specified type from the database. * * @param {string} event - Indicates the event must be string 'dataChange'. - * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}. + * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}.If its value is SUBSCRIBE_TYPE_REMOTE, ohos.permission.DISTRIBUTED_DATASYNC is required. * @param {AsyncCallback>} observer - {Array}: the data change observer already registered. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 8 diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index 3556635e56..36f4a7a443 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -33,7 +33,6 @@ declare namespace relationalStore * * @param {Context} context - Indicates the context of application or capability. * @param {StoreConfig} config - Indicates the {@link StoreConfig} configuration of the database related to this RDB store. - * @param {number} version - Indicates the database version for upgrade or downgrade. * @param {AsyncCallback} callback - the RDB store {@link RdbStore}. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @throws {BusinessError} 14800010 - if failed open database by invalid database name @@ -51,7 +50,6 @@ declare namespace relationalStore * * @param {Context} context - Indicates the context of application or capability. * @param {StoreConfig} config - Indicates the {@link StoreConfig} configuration of the database related to this RDB store. - * @param {number} version - Indicates the database version for upgrade or downgrade. * @returns {Promise} the RDB store {@link RdbStore}. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @throws {BusinessError} 14800010 - if failed open database by invalid database name @@ -567,7 +565,7 @@ declare namespace relationalStore querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void; /** - * Deletes data from the database based on a specified instance object of RdbPredicates. + * Queries data in the database based on SQL statement. * * @param {string} sql - Indicates the SQL statement to execute. * @param {Array} bindArgs - Indicates the {@link ValueType} values of the parameters in the SQL statement. The values are strings. @@ -752,7 +750,7 @@ declare namespace relationalStore * the callback will be invoked. * * @param {string} event - Indicates the event must be string 'dataChange'. - * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}. + * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}.If its value is SUBSCRIBE_TYPE_REMOTE, ohos.permission.DISTRIBUTED_DATASYNC is required. * @param {AsyncCallback>} observer - {Array}: the observer of data change events in the distributed database. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core @@ -764,7 +762,7 @@ declare namespace relationalStore * Remove specified observer of specified type from the database. * * @param {string} event - Indicates the event must be string 'dataChange'. - * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}. + * @param {SubscribeType} type - Indicates the subscription type, which is defined in {@link SubscribeType}.If its value is SUBSCRIBE_TYPE_REMOTE, ohos.permission.DISTRIBUTED_DATASYNC is required. * @param {AsyncCallback>} observer - {Array}: the data change observer already registered. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core -- Gitee