From 08d9de36a47c2f6626a19709166d45b8aedae627 Mon Sep 17 00:00:00 2001 From: lihuihui Date: Fri, 25 Nov 2022 15:35:31 +0800 Subject: [PATCH] add system api Signed-off-by: lihuihui --- api/@ohos.data.rdb.d.ts | 9 +++++++-- api/data/rdb/resultSet.d.ts | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 8e7a2b49b1..cd5fc7cbc0 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -14,8 +14,7 @@ */ import{ AsyncCallback, Callback } from './basic'; -import{ ResultSet as _ResultSet } from './data/rdb/resultSet'; -import{ ResultSetV9 as _ResultSetV9 } from './data/rdb/resultSet'; +import{ ResultSet as _ResultSet, ResultSetV9 as _ResultSetV9 } from './data/rdb/resultSet'; import Context from "./application/BaseContext"; import dataSharePredicates from './@ohos.data.dataSharePredicates'; @@ -651,6 +650,7 @@ declare namespace rdb * @param {AsyncCallback} callback - the number of affected rows. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; @@ -664,6 +664,7 @@ declare namespace rdb * @returns {Promise} return the number of affected rows. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise; @@ -698,6 +699,7 @@ declare namespace rdb * @param {AsyncCallback} callback - the number of affected rows. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; @@ -710,6 +712,7 @@ declare namespace rdb * @param {AsyncCallback} callback - the number of affected rows. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ delete(table: string, predicates: dataSharePredicates.DataSharePredicates): Promise; @@ -747,6 +750,7 @@ declare namespace rdb * @param {AsyncCallback} callback - the {@link ResultSetV9} object if the operation is successful. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array, callback: AsyncCallback): void; @@ -760,6 +764,7 @@ declare namespace rdb * @returns {Promise} return the {@link ResultSetV9} object if the operation is successful. * @throws {BusinessError} 401 - if the parameter type is incorrect. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @systemapi * @since 9 */ query(table: string, predicates: dataSharePredicates.DataSharePredicates, columns ?: Array): Promise; diff --git a/api/data/rdb/resultSet.d.ts b/api/data/rdb/resultSet.d.ts index 6a9c462376..6b07ec477c 100644 --- a/api/data/rdb/resultSet.d.ts +++ b/api/data/rdb/resultSet.d.ts @@ -23,7 +23,7 @@ import { AsyncCallback } from '../../basic' * @deprecated since 9 * @useinstead ohos.data.rdb.ResultSetV9 */ - interface ResultSet { + export interface ResultSet { /** * Obtains the names of all columns in a result set. @@ -310,7 +310,7 @@ import { AsyncCallback } from '../../basic' * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 9 */ - interface ResultSetV9 { + export interface ResultSetV9 { /** * Obtains the names of all columns in a result set. -- Gitee