From 6f54f5bfed5a1a9c22bd36422fa45da33190e8d2 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Thu, 12 May 2022 15:42:04 +0800 Subject: [PATCH 1/8] add datashare interfaces Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 93 ++++++++++++++++++++++++++++------------- 1 file changed, 64 insertions(+), 29 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 0244e6b8c1..d487c97ca1 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -16,6 +16,8 @@ import {AsyncCallback, Callback} from './basic'; import { ResultSet } from './data/rdb/resultSet'; import Context from "./application/Context"; +import DataSharePredicates from './@ohos.data.DataSharePredicates'; +import { ValueType, ValuesBucket } from './@ohos.data.ValuesBucket'; /** * Provides methods for rdbStore create and delete. @@ -123,6 +125,19 @@ declare namespace rdb { insert(name: string, values: ValuesBucket, callback: AsyncCallback): void; insert(name: string, values: ValuesBucket): Promise; + /** + * Inserts a row of data into the target table. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param name Indicates the target table. + * @param values Indicates the row of data to be inserted into the table. + * @return Returns the row ID if the operation is successful; returns -1 otherwise. + */ + insert(name: string, values: ValuesBucket, callback: AsyncCallback): void; + insert(name: string, values: ValuesBucket): Promise; + /** * Updates data in the database based on a a specified instance object of rdbPredicates. * @@ -130,23 +145,50 @@ declare namespace rdb { * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. - * @param rdbPredicates Indicates the specified update condition by the instance object of RdbPredicates. + * @param predicates Indicates the specified update condition by the instance object of RdbPredicates. * @return Returns the number of affected rows. */ - update(values: ValuesBucket, rdbPredicates: RdbPredicates, callback: AsyncCallback): void; - update(values: ValuesBucket, rdbPredicates: RdbPredicates): Promise; + update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback): void; + update(values: ValuesBucket, predicates: RdbPredicates): Promise; + /** + * Updates data in the database based on a a specified instance object of rdbPredicates. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param name Indicates the target table. + * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. + * @param predicates Indicates the specified update condition by the instance object of RdbPredicates. + * @return Returns the number of affected rows. + */ + update(name: string, values: ValuesBucket, predicates: DataSharePredicates, callback: AsyncCallback): void; + update(name: string, values: ValuesBucket, predicates: DataSharePredicates): Promise; + /** * Deletes data from the database based on a specified instance object of rdbPredicates. * * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param rdbPredicates Indicates the specified delete condition by the instance object of RdbPredicates. + * @param predicates Indicates the specified delete condition by the instance object of RdbPredicates. + * @return Returns the number of affected rows. + */ + delete(predicates: RdbPredicates, callback: AsyncCallback): void; + delete(predicates: RdbPredicates): Promise; + + /** + * Deletes data from the database based on a specified instance object of rdbPredicates. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param name Indicates the target table. + * @param predicates Indicates the specified delete condition by the instance object of RdbPredicates. * @return Returns the number of affected rows. */ - delete(rdbPredicates: RdbPredicates, callback: AsyncCallback): void; - delete(rdbPredicates: RdbPredicates): Promise; + delete(name: string, predicates: DataSharePredicates, callback: AsyncCallback): void; + delete(name: string, predicates: DataSharePredicates): Promise; /** * Queries data in the database based on specified conditions. @@ -154,12 +196,25 @@ declare namespace rdb { * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param rdbPredicates Indicates the specified query condition by the instance object of RdbPredicates. + * @param predicates Indicates the specified query condition by the instance object of RdbPredicates. + * @param columns Indicates the columns to query. If the value is null, the query applies to all columns. + * @return Returns a ResultSet object if the operation is successful; + */ + query(predicates: RdbPredicates, columns: Array, callback: AsyncCallback): void; + query(predicates: RdbPredicates, columns?: Array): Promise; + + /** + * Queries data in the database based on specified conditions. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param predicates Indicates the specified query condition by the instance object of RdbPredicates. * @param columns Indicates the columns to query. If the value is null, the query applies to all columns. * @return Returns a ResultSet object if the operation is successful; */ - query(rdbPredicates: RdbPredicates, columns: Array, callback: AsyncCallback): void; - query(rdbPredicates: RdbPredicates, columns?: Array): Promise; + query(name: string, predicates: DataSharePredicates, columns: Array, callback: AsyncCallback): void; + query(name: string, predicates: DataSharePredicates, columns?: Array): Promise; /** * Queries data in the database based on SQL statement. @@ -280,26 +335,6 @@ declare namespace rdb { off(event:'dataChange', type: SubscribeType, observer: Callback>): void; } - /** - * Indicates possible value types - * - * @since 7 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import import data_rdb from '@ohos.data.rdb'; - */ - type ValueType = number | string | boolean; - - /** - * Values in buckets are stored in key-value pairs - * - * @since 7 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import import data_rdb from '@ohos.data.rdb'; - */ - type ValuesBucket = { - [key: string]: ValueType | Uint8Array | null; - } - /** * Manages relational database configurations. * -- Gitee From db1ae571612b922fc6438f164e1b3c3f7fb57639 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Thu, 12 May 2022 15:47:31 +0800 Subject: [PATCH 2/8] update Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d487c97ca1..16c6761e89 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -187,8 +187,8 @@ declare namespace rdb { * @param predicates Indicates the specified delete condition by the instance object of RdbPredicates. * @return Returns the number of affected rows. */ - delete(name: string, predicates: DataSharePredicates, callback: AsyncCallback): void; - delete(name: string, predicates: DataSharePredicates): Promise; + delete(name: string, predicates: DataSharePredicates, callback: AsyncCallback): void; + delete(name: string, predicates: DataSharePredicates): Promise; /** * Queries data in the database based on specified conditions. -- Gitee From bf75f90f9b1a414ff52d2d128745fec739552792 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Thu, 12 May 2022 16:43:35 +0800 Subject: [PATCH 3/8] delete insert Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 16c6761e89..fb3790ad3d 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -125,19 +125,6 @@ declare namespace rdb { insert(name: string, values: ValuesBucket, callback: AsyncCallback): void; insert(name: string, values: ValuesBucket): Promise; - /** - * Inserts a row of data into the target table. - * - * @note N/A - * @since 9 - * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param name Indicates the target table. - * @param values Indicates the row of data to be inserted into the table. - * @return Returns the row ID if the operation is successful; returns -1 otherwise. - */ - insert(name: string, values: ValuesBucket, callback: AsyncCallback): void; - insert(name: string, values: ValuesBucket): Promise; - /** * Updates data in the database based on a a specified instance object of rdbPredicates. * -- Gitee From 8970e2b6733ff4e0411f04b97edb947d328366ca Mon Sep 17 00:00:00 2001 From: wuyongning Date: Fri, 13 May 2022 10:05:37 +0800 Subject: [PATCH 4/8] update Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index fb3790ad3d..7fa5d1862e 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -146,7 +146,7 @@ declare namespace rdb { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param name Indicates the target table. * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. - * @param predicates Indicates the specified update condition by the instance object of RdbPredicates. + * @param predicates Indicates the specified update condition by the instance object of DataSharePredicates. * @return Returns the number of affected rows. */ update(name: string, values: ValuesBucket, predicates: DataSharePredicates, callback: AsyncCallback): void; @@ -171,7 +171,7 @@ declare namespace rdb { * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param name Indicates the target table. - * @param predicates Indicates the specified delete condition by the instance object of RdbPredicates. + * @param predicates Indicates the specified delete condition by the instance object of DataSharePredicates. * @return Returns the number of affected rows. */ delete(name: string, predicates: DataSharePredicates, callback: AsyncCallback): void; @@ -196,7 +196,8 @@ declare namespace rdb { * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param predicates Indicates the specified query condition by the instance object of RdbPredicates. + * @param name Indicates the target table. + * @param predicates Indicates the specified query condition by the instance object of DataSharePredicates. * @param columns Indicates the columns to query. If the value is null, the query applies to all columns. * @return Returns a ResultSet object if the operation is successful; */ -- Gitee From 90d6eae78054d430589093d897cabce858323909 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Fri, 13 May 2022 10:58:58 +0800 Subject: [PATCH 5/8] update Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 7fa5d1862e..44910d5858 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -118,12 +118,12 @@ declare namespace rdb { * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param name Indicates the target table. + * @param table Indicates the target table. * @param values Indicates the row of data to be inserted into the table. * @return Returns the row ID if the operation is successful; returns -1 otherwise. */ - insert(name: string, values: ValuesBucket, callback: AsyncCallback): void; - insert(name: string, values: ValuesBucket): Promise; + insert(table: string, values: ValuesBucket, callback: AsyncCallback): void; + insert(table: string, values: ValuesBucket): Promise; /** * Updates data in the database based on a a specified instance object of rdbPredicates. @@ -144,13 +144,13 @@ declare namespace rdb { * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param name Indicates the target table. + * @param table Indicates the target table. * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. * @param predicates Indicates the specified update condition by the instance object of DataSharePredicates. * @return Returns the number of affected rows. */ - update(name: string, values: ValuesBucket, predicates: DataSharePredicates, callback: AsyncCallback): void; - update(name: string, values: ValuesBucket, predicates: DataSharePredicates): Promise; + update(table: string, values: ValuesBucket, predicates: DataSharePredicates, callback: AsyncCallback): void; + update(table: string, values: ValuesBucket, predicates: DataSharePredicates): Promise; /** * Deletes data from the database based on a specified instance object of rdbPredicates. @@ -170,12 +170,12 @@ declare namespace rdb { * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param name Indicates the target table. + * @param table Indicates the target table. * @param predicates Indicates the specified delete condition by the instance object of DataSharePredicates. * @return Returns the number of affected rows. */ - delete(name: string, predicates: DataSharePredicates, callback: AsyncCallback): void; - delete(name: string, predicates: DataSharePredicates): Promise; + delete(table: string, predicates: DataSharePredicates, callback: AsyncCallback): void; + delete(table: string, predicates: DataSharePredicates): Promise; /** * Queries data in the database based on specified conditions. @@ -196,13 +196,13 @@ declare namespace rdb { * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @param name Indicates the target table. + * @param table Indicates the target table. * @param predicates Indicates the specified query condition by the instance object of DataSharePredicates. * @param columns Indicates the columns to query. If the value is null, the query applies to all columns. * @return Returns a ResultSet object if the operation is successful; */ - query(name: string, predicates: DataSharePredicates, columns: Array, callback: AsyncCallback): void; - query(name: string, predicates: DataSharePredicates, columns?: Array): Promise; + query(table: string, predicates: DataSharePredicates, columns: Array, callback: AsyncCallback): void; + query(table: string, predicates: DataSharePredicates, columns?: Array): Promise; /** * Queries data in the database based on SQL statement. -- Gitee From 2d623ec83ae51015cb9797c321b0d77608acd5a7 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Mon, 16 May 2022 14:22:50 +0800 Subject: [PATCH 6/8] update file Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 44910d5858..651d4ff644 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -17,7 +17,6 @@ import {AsyncCallback, Callback} from './basic'; import { ResultSet } from './data/rdb/resultSet'; import Context from "./application/Context"; import DataSharePredicates from './@ohos.data.DataSharePredicates'; -import { ValueType, ValuesBucket } from './@ohos.data.ValuesBucket'; /** * Provides methods for rdbStore create and delete. @@ -323,6 +322,26 @@ declare namespace rdb { off(event:'dataChange', type: SubscribeType, observer: Callback>): void; } + /** + * Indicates possible value types + * + * @since 7 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import import data_rdb from '@ohos.data.rdb'; + */ + type ValueType = number | string | boolean; + + /** + * Values in buckets are stored in key-value pairs + * + * @since 7 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @import import data_rdb from '@ohos.data.rdb'; + */ + type ValuesBucket = { + [key: string]: ValueType | Uint8Array | null; + } + /** * Manages relational database configurations. * -- Gitee From 2ac6dc3cd7ca79fab967f29ae83e47ea3e053c5d Mon Sep 17 00:00:00 2001 From: wuyongning Date: Mon, 16 May 2022 14:26:00 +0800 Subject: [PATCH 7/8] update Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 651d4ff644..d24a83d18a 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -138,7 +138,7 @@ declare namespace rdb { update(values: ValuesBucket, predicates: RdbPredicates): Promise; /** - * Updates data in the database based on a a specified instance object of rdbPredicates. + * Updates data in the database based on a a specified instance object of DataSharePredicates. * * @note N/A * @since 9 @@ -164,7 +164,7 @@ declare namespace rdb { delete(predicates: RdbPredicates): Promise; /** - * Deletes data from the database based on a specified instance object of rdbPredicates. + * Deletes data from the database based on a specified instance object of DataSharePredicates. * * @note N/A * @since 9 -- Gitee From f10b9d722b91a065d1f61f2b0b5196fea0a40f43 Mon Sep 17 00:00:00 2001 From: wuyongning Date: Tue, 17 May 2022 14:31:54 +0800 Subject: [PATCH 8/8] remove 'N/A' Signed-off-by: wuyongning --- api/@ohos.data.rdb.d.ts | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d24a83d18a..7b20196203 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -32,7 +32,6 @@ declare namespace rdb { * You can set parameters of the RDB store as required. In general, this method is recommended * to obtain a rdb store. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param context Indicates the context of application or capability. @@ -47,7 +46,6 @@ declare namespace rdb { /** * Deletes the database with a specified name. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param context Indicates the context of application or capability. @@ -62,7 +60,6 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import N/A */ enum SyncMode { /** @@ -70,7 +67,6 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import N/A */ SYNC_MODE_PUSH = 0, @@ -79,7 +75,6 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import N/A */ SYNC_MODE_PULL = 1, } @@ -89,14 +84,12 @@ declare namespace rdb { * * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import N/A */ enum SubscribeType { /** * Subscription to remote data changes * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @import N/A */ SUBSCRIBE_TYPE_REMOTE = 0, } @@ -114,7 +107,6 @@ declare namespace rdb { /** * Inserts a row of data into the target table. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param table Indicates the target table. @@ -127,7 +119,6 @@ declare namespace rdb { /** * Updates data in the database based on a a specified instance object of rdbPredicates. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param values Indicates the row of data to be updated in the database.The key-value pairs are associated with column names of the database table. @@ -140,7 +131,6 @@ declare namespace rdb { /** * Updates data in the database based on a a specified instance object of DataSharePredicates. * - * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param table Indicates the target table. @@ -154,7 +144,6 @@ declare namespace rdb { /** * Deletes data from the database based on a specified instance object of rdbPredicates. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param predicates Indicates the specified delete condition by the instance object of RdbPredicates. @@ -166,7 +155,6 @@ declare namespace rdb { /** * Deletes data from the database based on a specified instance object of DataSharePredicates. * - * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param table Indicates the target table. @@ -179,7 +167,6 @@ declare namespace rdb { /** * Queries data in the database based on specified conditions. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param predicates Indicates the specified query condition by the instance object of RdbPredicates. @@ -192,7 +179,6 @@ declare namespace rdb { /** * Queries data in the database based on specified conditions. * - * @note N/A * @since 9 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param table Indicates the target table. @@ -206,7 +192,6 @@ declare namespace rdb { /** * Queries data in the database based on SQL statement. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param sql Indicates the SQL statement to execute. @@ -219,7 +204,6 @@ declare namespace rdb { /** * Executes an SQL statement that contains specified parameters but returns no value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param sql Indicates the SQL statement to execute. @@ -231,7 +215,6 @@ declare namespace rdb { /** * beginTransaction before excute your sql * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ @@ -240,7 +223,6 @@ declare namespace rdb { /** * commit the the sql you have excuted. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ @@ -249,7 +231,6 @@ declare namespace rdb { /** * roll back the sql you have already excuted * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ @@ -258,7 +239,6 @@ declare namespace rdb { /** * Set table to be distributed table. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param tables the tables name you want to set @@ -271,7 +251,6 @@ 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. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param device Indicates the remote device. @@ -285,7 +264,6 @@ declare namespace rdb { /** * Sync data between devices * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param mode Indicates the synchronization mode. The value can be PUSH, PULL. @@ -300,7 +278,6 @@ declare namespace rdb { * Registers an observer for the database. When data in the distributed database changes, * the callback will be invoked. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. @@ -312,7 +289,6 @@ declare namespace rdb { /** * Remove specified observer of specified type from the database. * - * @note N/A * @since 8 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param type Indicates the subscription type, which is defined in {@code SubscribeType}. @@ -365,7 +341,6 @@ declare namespace rdb { * A parameterized constructor used to create an RdbPredicates instance. * name Indicates the table name of the database. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core */ @@ -550,7 +525,6 @@ declare namespace rdb { /** * Restricts the value of the field to the range between low value and high value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. @@ -564,7 +538,6 @@ declare namespace rdb { * Configures RdbPredicates to match the specified field whose data type is int and value is * out of a given range. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. @@ -577,7 +550,6 @@ declare namespace rdb { /** * Restricts the value of the field to be greater than the specified value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. @@ -589,7 +561,6 @@ declare namespace rdb { /** * Restricts the value of the field to be smaller than the specified value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. @@ -601,7 +572,6 @@ declare namespace rdb { /** * Restricts the value of the field to be greater than or equal to the specified value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. @@ -613,7 +583,6 @@ declare namespace rdb { /** * Restricts the value of the field to be smaller than or equal to the specified value. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name. @@ -626,7 +595,6 @@ declare namespace rdb { * Restricts the ascending order of the return list. When there are several orders, * the one close to the head has the highest priority. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name for sorting the return list. @@ -638,7 +606,6 @@ declare namespace rdb { * Restricts the descending order of the return list. When there are several orders, * the one close to the head has the highest priority. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name for sorting the return list. @@ -649,7 +616,6 @@ declare namespace rdb { /** * Restricts each row of the query result to be unique. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @return Returns the SQL query statement with the specified RdbPredicates. @@ -659,7 +625,6 @@ declare namespace rdb { /** * Restricts the max number of return records. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param value Indicates the max length of the return list. @@ -681,7 +646,6 @@ declare namespace rdb { /** * Configures RdbPredicates to group query results by specified columns. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param fields Indicates the specified columns by which query results are grouped. @@ -704,7 +668,6 @@ declare namespace rdb { * Configures RdbPredicates to match the specified field whose data type is ValueType array and values * are within a given range. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. @@ -717,7 +680,6 @@ declare namespace rdb { * Configures RdbPredicates to match the specified field whose data type is ValueType array and values * are out of a given range. * - * @note N/A * @since 7 * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @param field Indicates the column name in the database table. -- Gitee