From c053b2a70a38a26b492e6959f05a6b774329a001 Mon Sep 17 00:00:00 2001 From: guochao Date: Sat, 21 Jun 2025 11:30:27 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E4=BD=93?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8arkTs=201.2=E7=9A=84=E6=8E=A5=E5=8F=A3=20Sign?= =?UTF-8?q?ed-off-by:=20guochao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.data.relationalStore.d.ts | 89 +++++++++++------------------ 1 file changed, 33 insertions(+), 56 deletions(-) diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index e1d3b94b0a..cee37aadf4 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -4091,8 +4091,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ insert(table: string, values: ValuesBucket, callback: AsyncCallback): void; @@ -4141,8 +4140,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callback: AsyncCallback): void; @@ -4380,8 +4378,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ batchInsert(table: string, values: Array, callback: AsyncCallback): void; @@ -4607,8 +4604,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback): void; @@ -4659,8 +4655,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ update( values: ValuesBucket, @@ -4945,7 +4940,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the specified update condition by * the instance object of {@link dataSharePredicates.DataSharePredicates}. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4971,9 +4966,10 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi * @StageModelOnly - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise; + update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise; /** * Deletes data from the database based on a specified instance object of RdbPredicates. @@ -5027,8 +5023,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ delete(predicates: RdbPredicates, callback: AsyncCallback): void; @@ -5160,7 +5155,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { dataSharePredicates.DataSharePredicates } predicates - The specified delete condition by the instance object * of {@link dataSharePredicates.DataSharePredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -5186,10 +5181,9 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi * @StageModelOnly - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ - delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; + delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; /** * Deletes data from the database based on a specified instance object of RdbPredicates. @@ -5285,8 +5279,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ query(predicates: RdbPredicates, callback: AsyncCallback): void; @@ -5328,8 +5321,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ query(predicates: RdbPredicates, columns: Array, callback: AsyncCallback): void; @@ -5489,7 +5481,8 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi * @StageModelOnly - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ query( table: string, @@ -5539,8 +5532,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ querySql(sql: string, callback: AsyncCallback): void; @@ -5582,8 +5574,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void; @@ -6081,8 +6072,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ executeSql(sql: string, callback: AsyncCallback): void; @@ -6142,8 +6132,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void; @@ -6203,8 +6192,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ executeSql(sql: string, bindArgs?: Array): Promise; @@ -6354,8 +6342,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ beginTransaction(): void; @@ -6428,8 +6415,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ commit(): void; @@ -6459,8 +6445,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800033 - SQLite: Data type mismatch. * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ commit(txId : long): Promise; @@ -6503,8 +6488,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ rollBack(): void; @@ -6697,8 +6681,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ restore(srcName: string, callback: AsyncCallback): void; @@ -7940,8 +7923,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800029 - SQLite: The database is full. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'14', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 14 */ commit(): Promise; @@ -7960,8 +7942,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800029 - SQLite: The database is full. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'14', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 14 */ rollback(): Promise; @@ -8511,8 +8492,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800030 - SQLite: Unable to open the database file. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'14', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 14 */ function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void; @@ -8634,8 +8614,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800010 - Failed to open or delete database by invalid database path. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'10', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function deleteRdbStore(context: Context, name: string, callback: AsyncCallback): void; @@ -8654,8 +8633,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14801002 - Invalid data group ID. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'10', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 10 */ function deleteRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void; @@ -8701,8 +8679,7 @@ declare namespace relationalStore { * @throws { BusinessError } 14800010 - Invalid database path. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since arkts {'1.1':'12', '1.2':'20'} - * @arkts 1.1&1.2 + * @since 12 */ function deleteRdbStore(context: Context, name: string): Promise; -- Gitee From 56b784965846602d6828f7021b4cd72f7d577a84 Mon Sep 17 00:00:00 2001 From: guochao Date: Tue, 24 Jun 2025 15:43:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?sdk=E4=BF=AE=E6=94=B9=20asyncCallback?= =?UTF-8?q?=E4=B8=8D=E5=9C=A81.2=E4=BD=93=E7=8E=B0=20Signed-off-by:=20guoc?= =?UTF-8?q?hao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.data.relationalStore.d.ts | 454 +++++++++++++++------------- 1 file changed, 240 insertions(+), 214 deletions(-) diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index cee37aadf4..04bd1ccf2e 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -23,7 +23,6 @@ import Context from './application/BaseContext'; import dataSharePredicates from './@ohos.data.dataSharePredicates'; /*** if arkts 1.1 */ import sendableRelationalStore from './@ohos.data.sendableRelationalStore'; -import { int, long, double } from './@ohos.base'; /*** endif */ /** * Provides methods for rdbStore create and delete. @@ -215,14 +214,14 @@ declare namespace relationalStore { /** * Indicates possible value types * - * @typedef { null | long | double | string | boolean | Uint8Array } ValueType + * @typedef { null | number | string | boolean | Uint8Array } ValueType * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 9 */ /** * Indicates possible value types * - * @typedef { null | long | double | string | boolean | Uint8Array | Asset | Assets } ValueType + * @typedef { null | number | string | boolean | Uint8Array | Asset | Assets } ValueType * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform * @since 10 @@ -230,13 +229,13 @@ declare namespace relationalStore { /** * Indicates possible value types * - * @typedef { null | long | double | string | boolean | Uint8Array | Asset | Assets | Float32Array | bigint } ValueType + * @typedef { null | number | string | boolean | Uint8Array | Asset | Assets | Float32Array | bigint } ValueType * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - type ValueType = null | long | double | string | boolean | Uint8Array | Asset | Assets | Float32Array | bigint; + type ValueType = null | number | string | boolean | Uint8Array | Asset | Assets | Float32Array | bigint; /** * Values in buckets are stored in key-value pairs @@ -266,12 +265,12 @@ declare namespace relationalStore { /** * The type of the priority key can be number or string * - * @typedef { long | double | string } PRIKeyType + * @typedef { number | string } PRIKeyType * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - type PRIKeyType = long | double | string; + type PRIKeyType = number | string; /** * The time is in UTC format. @@ -397,7 +396,8 @@ declare namespace relationalStore { * @type { ?boolean } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ isSearchable?: boolean; @@ -448,7 +448,8 @@ declare namespace relationalStore { * @type { ?HAMode } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ haMode?: HAMode; @@ -539,12 +540,12 @@ declare namespace relationalStore { * Default number is 10000. * When the number is set to 0, use default iteration number and encryption algorithm. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - iterationCount?: int; + iterationCount?: number; /** * Specifies the encryption algorithm when opening an encrypted database. @@ -583,12 +584,12 @@ declare namespace relationalStore { * Specifies the page size used when opening an encrypted database. * Default crypto page size is 1024. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - cryptoPageSize?: int; + cryptoPageSize?: number; } /** @@ -773,42 +774,42 @@ declare namespace relationalStore { /** * Describes the total number of data to sync. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - total: int; + total: number; /** * Describes the number of successfully synced data. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - successful: int; + successful: number; /** * Describes the number of data failed to sync. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - failed: int; + failed: number; /** * Describes the number of data remained to sync. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - remained: int; + remained: number; } /** @@ -991,42 +992,42 @@ declare namespace relationalStore { /** * Total time used for executing the SQL statements, in μs. * - * @type { long } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - totalTime: long; + totalTime: number; /** * Maximum time allowed to obtain the SQL file handle, in μs. * - * @type { long } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - waitTime: long; + waitTime: number; /** * Time used to prepare SQL and args, in μs. * - * @type { long } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - prepareTime: long; + prepareTime: number; /** * Time used to execute the SQL statements, in μs. * - * @type { long } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - executeTime: long; + executeTime: number; } /** @@ -1274,34 +1275,34 @@ declare namespace relationalStore { * Indicates if there is a string primary key, the inserted will keep data's primary keys * otherwise it will keep the data's rowid. * - * @type { Array | Array } + * @type { Array | Array } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - inserted: Array | Array; + inserted: Array | Array; /** * Indicates if there is a string primary key, the updated will keep data's primary keys * otherwise it will keep the data's rowid. * - * @type { Array | Array } + * @type { Array | Array } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - updated: Array | Array; + updated: Array | Array; /** * Indicates if there is a string primary key, the deleted will keep data's primary keys * otherwise it will keep the data's rowid. * - * @type { Array | Array } + * @type { Array | Array } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - deleted: Array | Array; + deleted: Array | Array; } /** @@ -2427,7 +2428,7 @@ declare namespace relationalStore { /** * Restricts the max number of return records. * - * @param { int } value - Indicates the max length of the return list. + * @param { number } value - Indicates the max length of the return list. * @returns { RdbPredicates } - The SQL query statement with the specified {@link RdbPredicates}. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2437,7 +2438,7 @@ declare namespace relationalStore { /** * Restricts the max number of return records. * - * @param { int } value - Indicates the max length of the return list. + * @param { number } value - Indicates the max length of the return list. * @returns { RdbPredicates } - The SQL query statement with the specified {@link RdbPredicates}. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2446,13 +2447,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - limitAs(value: int): RdbPredicates; + limitAs(value: number): RdbPredicates; /** * Configure RdbPredicates to specify the start position of the returned result. * Use this method together with limit(number). * - * @param { int } rowOffset - Indicates the start position of the returned result. The value is a positive integer. + * @param { number } rowOffset - Indicates the start position of the returned result. The value is a positive integer. * @returns { RdbPredicates } - The SQL query statement with the specified {@link RdbPredicates}. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2463,7 +2464,7 @@ declare namespace relationalStore { * Configure RdbPredicates to specify the start position of the returned result. * Use this method together with limit(number). * - * @param { int } rowOffset - Indicates the start position of the returned result. The value is a positive integer. + * @param { number } rowOffset - Indicates the start position of the returned result. The value is a positive integer. * @returns { RdbPredicates } - The SQL query statement with the specified {@link RdbPredicates}. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2472,7 +2473,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - offsetAs(rowOffset: int): RdbPredicates; + offsetAs(rowOffset: number): RdbPredicates; /** * Configure RdbPredicates to group query results by specified columns. @@ -2663,13 +2664,13 @@ declare namespace relationalStore { * The returned number is equal to the length of the string array returned by the * columnNames method. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - columnCount: int; + columnCount: number; /** * Obtains the number of rows in the result set. @@ -2680,13 +2681,13 @@ declare namespace relationalStore { /** * Obtains the number of rows in the result set. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - rowCount: int; + rowCount: number; /** * Obtains the current index of the result set. @@ -2699,13 +2700,13 @@ declare namespace relationalStore { * Obtains the current index of the result set. * The result set index starts from 0. * - * @type { int } + * @type { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - rowIndex: int; + rowIndex: number; /** * Checks whether the cursor is positioned at the first row. @@ -2799,7 +2800,7 @@ declare namespace relationalStore { * The column name is passed as an input parameter. * * @param { string } columnName - Indicates the name of the specified column in the result set. - * @returns { int } The index of the specified column. + * @returns { number } The index of the specified column. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2811,7 +2812,7 @@ declare namespace relationalStore { * The column name is passed as an input parameter. * * @param { string } columnName - Indicates the name of the specified column in the result set. - * @returns { int } The index of the specified column. + * @returns { number } The index of the specified column. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2824,7 +2825,7 @@ declare namespace relationalStore { * The column name is passed as an input parameter. * * @param { string } columnName - Indicates the name of the specified column in the result set. - * @returns { int } The index of the specified column. + * @returns { number } The index of the specified column. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -2851,13 +2852,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getColumnIndex(columnName: string): int; + getColumnIndex(columnName: string): number; /** * Obtains the column name based on the specified column index. * The column index is passed as an input parameter. * - * @param { int } columnIndex - Indicates the index of the specified column in the result set. + * @param { number } columnIndex - Indicates the index of the specified column in the result set. * @returns { string } The name of the specified column. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -2869,7 +2870,7 @@ declare namespace relationalStore { * Obtains the column name based on the specified column index. * The column index is passed as an input parameter. * - * @param { int } columnIndex - Indicates the index of the specified column in the result set. + * @param { number } columnIndex - Indicates the index of the specified column in the result set. * @returns { string } The name of the specified column. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -2882,7 +2883,7 @@ declare namespace relationalStore { * Obtains the column name based on the specified column index. * The column index is passed as an input parameter. * - * @param { int } columnIndex - Indicates the index of the specified column in the result set. + * @param { number } columnIndex - Indicates the index of the specified column in the result set. * @returns { string } The name of the specified column. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -2910,7 +2911,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getColumnName(columnIndex: int): string; + getColumnName(columnIndex: number): string; /** * Obtains the column data type based on the specified column index. @@ -2984,7 +2985,7 @@ declare namespace relationalStore { * Go to the specified row of the result set forwards or backwards by an offset relative to its current position. * A positive offset indicates moving backwards, and a negative offset indicates moving forwards. * - * @param { int } offset - Indicates the offset relative to the current position. + * @param { number } offset - Indicates the offset relative to the current position. * @returns { boolean } True if the result set is moved successfully and does not go beyond the range; * Returns false otherwise. * @throws { BusinessError } 14800012 - The result set is empty or the specified location is invalid. @@ -2997,7 +2998,7 @@ declare namespace relationalStore { * Go to the specified row of the result set forwards or backwards by an offset relative to its current position. * A positive offset indicates moving backwards, and a negative offset indicates moving forwards. * - * @param { int } offset - Indicates the offset relative to the current position. + * @param { number } offset - Indicates the offset relative to the current position. * @returns { boolean } True if the result set is moved successfully and does not go beyond the range; * Returns false otherwise. * @throws { BusinessError } 14800012 - The result set is empty or the specified location is invalid. @@ -3011,7 +3012,7 @@ declare namespace relationalStore { * Go to the specified row of the result set forwards or backwards by an offset relative to its current position. * A positive offset indicates moving backwards, and a negative offset indicates moving forwards. * - * @param { int } offset - Indicates the offset relative to the current position. + * @param { number } offset - Indicates the offset relative to the current position. * @returns { boolean } True if the result set is moved successfully and does not go beyond the range; * Returns false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3040,12 +3041,12 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - goTo(offset: int): boolean; + goTo(offset: number): boolean; /** * Go to the specified row of the result set. * - * @param { int } position - Indicates the index of the specified row, which starts from 0. + * @param { number } position - Indicates the index of the specified row, which starts from 0. * @returns { boolean } True if the result set is moved successfully; Returns false otherwise. * @throws { BusinessError } 14800012 - The result set is empty or the specified location is invalid. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3056,7 +3057,7 @@ declare namespace relationalStore { /** * Go to the specified row of the result set. * - * @param { int } position - Indicates the index of the specified row, which starts from 0. + * @param { number } position - Indicates the index of the specified row, which starts from 0. * @returns { boolean } True if the result set is moved successfully; Returns false otherwise. * @throws { BusinessError } 14800012 - The result set is empty or the specified location is invalid. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3068,7 +3069,7 @@ declare namespace relationalStore { /** * Go to the specified row of the result set. * - * @param { int } position - Indicates the index of the specified row, which starts from 0. + * @param { number } position - Indicates the index of the specified row, which starts from 0. * @returns { boolean } True if the result set is moved successfully; Returns false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3096,7 +3097,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - goToRow(position: int): boolean; + goToRow(position: number): boolean; /** * Go to the first row of the result set. @@ -3303,7 +3304,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Blob type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Uint8Array } The value of the specified column as a byte array. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3316,7 +3317,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Blob type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Uint8Array } The value of the specified column as a byte array. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3330,7 +3331,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Blob type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Uint8Array } The value of the specified column as a byte array. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3358,14 +3359,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getBlob(columnIndex: int): Uint8Array; + getBlob(columnIndex: number): Uint8Array; /** * Obtains the value of the specified column in the current row as string. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the string type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { string } The value of the specified column as a string. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3378,7 +3379,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the string type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { string } The value of the specified column as a string. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3392,7 +3393,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the string type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { string } The value of the specified column as a string. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3420,15 +3421,15 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getString(columnIndex: int): string; + getString(columnIndex: number): string; /** - * Obtains the value of the specified column in the current row as long. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { long } The value of the specified column as a long. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3436,12 +3437,12 @@ declare namespace relationalStore { * @since 9 */ /** - * Obtains the value of the specified column in the current row as long. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { long } The value of the specified column as a long. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3450,12 +3451,12 @@ declare namespace relationalStore { * @since 10 */ /** - * Obtains the value of the specified column in the current row as long. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { long } The value of the specified column as a long. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -3482,15 +3483,15 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getLong(columnIndex: int): long; + getLong(columnIndex: number): number; /** - * Obtains the value of the specified column in the current row as double. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the double type. + * in the current row is null, the specified column is not of the number type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { double } The value of the specified column as a double. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3498,12 +3499,12 @@ declare namespace relationalStore { * @since 9 */ /** - * Obtains the value of the specified column in the current row as double. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the double type. + * in the current row is null, the specified column is not of the number type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { double } The value of the specified column as a double. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3512,12 +3513,12 @@ declare namespace relationalStore { * @since 10 */ /** - * Obtains the value of the specified column in the current row as double. + * Obtains the value of the specified column in the current row as number. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the double type. + * in the current row is null, the specified column is not of the number type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { double } The value of the specified column as a double. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. + * @returns { number } The value of the specified column as a number. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -3544,14 +3545,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getDouble(columnIndex: int): double; + getDouble(columnIndex: number): number; /** * Obtains the value of the specified column in the current row as an asset. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Asset type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Asset } The value of the specified column as an asset. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3565,7 +3566,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Asset type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Asset } The value of the specified column as an asset. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3593,14 +3594,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getAsset(columnIndex: int): Asset; + getAsset(columnIndex: number): Asset; /** * Obtains the value of the specified column in the current row as assets. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Assets type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Assets } The value of the specified column as assets. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3614,7 +3615,7 @@ declare namespace relationalStore { * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Assets type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Assets } The value of the specified column as assets. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3642,14 +3643,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getAssets(columnIndex: int): Assets; + getAssets(columnIndex: number): Assets; /** * Obtains the value of the specified column in the current row. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the Assets type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { ValueType } The value of the specified column. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3682,7 +3683,7 @@ declare namespace relationalStore { * Inserting an empty blob, after API14 and API14, the obtained value is an empty blob; Before API 14, * the obtained value was null. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { ValueType } The value of the specified column. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3709,14 +3710,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - getValue(columnIndex: int): ValueType; + getValue(columnIndex: number): ValueType; /** * Obtains the value of the specified column in the current row as a float array. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null or the specified column is not of the float array type. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Float32Array } The value of the specified column as a float array. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3744,7 +3745,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - getFloat32Array(columnIndex: int): Float32Array; + getFloat32Array(columnIndex: number): Float32Array; /** * Obtains the values of all columns in the specified row. @@ -3875,7 +3876,7 @@ declare namespace relationalStore { /** * Checks whether the value of the specified column in the current row is null. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { boolean } True if the value of the specified column in the current row is null; * Returns false otherwise. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. @@ -3887,7 +3888,7 @@ declare namespace relationalStore { /** * Checks whether the value of the specified column in the current row is null. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { boolean } True if the value of the specified column in the current row is null; * Returns false otherwise. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. @@ -3900,7 +3901,7 @@ declare namespace relationalStore { /** * Checks whether the value of the specified column in the current row is null. * - * @param { int } columnIndex - Indicates the specified column index, which starts from 0. + * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { boolean } True if the value of the specified column in the current row is null; * Returns false otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -3929,7 +3930,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - isColumnNull(columnIndex: int): boolean; + isColumnNull(columnIndex: number): boolean; /** * Closes the result set. @@ -4004,7 +4005,7 @@ declare namespace relationalStore { * Set RdbStore version. The version number must be an integer greater than 0. * Obtains the RdbStore version. * - * @type { int } + * @type { number } * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 801 - Capability not supported. @@ -4025,7 +4026,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - version: int; + version: number; /** * Set whether the database is rebuilt. @@ -4041,7 +4042,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4053,7 +4054,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4067,7 +4068,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4091,9 +4092,10 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - insert(table: string, values: ValuesBucket, callback: AsyncCallback): void; + insert(table: string, values: ValuesBucket, callback: AsyncCallback): void; /** * Inserts a row of data into the target table. @@ -4101,7 +4103,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4116,7 +4118,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The row ID if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4140,16 +4142,17 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callback: AsyncCallback): void; + insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callback: AsyncCallback): void; /** * Inserts a row of data into the target table. * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4161,7 +4164,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4175,7 +4178,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4202,7 +4205,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - insert(table: string, values: ValuesBucket): Promise; + insert(table: string, values: ValuesBucket): Promise; /** * Inserts a row of data into the target table. @@ -4210,7 +4213,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4225,7 +4228,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4252,7 +4255,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - insert(table: string, values: ValuesBucket, conflict: ConflictResolution): Promise; + insert(table: string, values: ValuesBucket, conflict: ConflictResolution): Promise; /** * Inserts a row of data into the target table with sync interface. @@ -4260,7 +4263,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { long } The row ID if the operation is successful. return -1 otherwise. + * @returns { number } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4287,7 +4290,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - insertSync(table: string, values: ValuesBucket, conflict?: ConflictResolution): long; + insertSync(table: string, values: ValuesBucket, conflict?: ConflictResolution): number; /** * Inserts a row of data into the target table with sync interface. @@ -4328,7 +4331,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4340,7 +4343,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4354,7 +4357,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @param { AsyncCallback } callback - The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4378,16 +4381,17 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - batchInsert(table: string, values: Array, callback: AsyncCallback): void; + batchInsert(table: string, values: Array, callback: AsyncCallback): void; /** * Inserts a batch of data into the target table. * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4399,7 +4403,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4413,7 +4417,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4440,14 +4444,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsert(table: string, values: Array): Promise; + batchInsert(table: string, values: Array): Promise; /** * Inserts a batch of data into the target table. * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { long } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { number } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4474,7 +4478,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsertSync(table: string, values: Array): long; + batchInsertSync(table: string, values: Array): number; /** * Inserts a batch of data into the target table. @@ -4482,7 +4486,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4509,7 +4513,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsertWithConflictResolution(table: string, values: Array, conflict: ConflictResolution): Promise; + batchInsertWithConflictResolution(table: string, values: Array, conflict: ConflictResolution): Promise; /** * Inserts a batch of data into the target table. @@ -4517,7 +4521,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { long } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { number } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4544,7 +4548,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsertWithConflictResolutionSync(table: string, values: Array, conflict: ConflictResolution): long; + batchInsertWithConflictResolutionSync(table: string, values: Array, conflict: ConflictResolution): number; /** * Updates data in the database based on a specified instance object of RdbPredicates. @@ -4552,7 +4556,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4565,7 +4569,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4580,7 +4584,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4604,9 +4608,10 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback): void; + update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback): void; /** * Updates data in the database based on a specified instance object of RdbPredicates. @@ -4615,7 +4620,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4631,7 +4636,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4655,13 +4660,14 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ update( values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolution, - callback: AsyncCallback + callback: AsyncCallback ): void; /** @@ -4670,7 +4676,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4683,7 +4689,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4698,7 +4704,7 @@ declare namespace relationalStore { * @param { ValuesBucket } 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 } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4725,7 +4731,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - update(values: ValuesBucket, predicates: RdbPredicates): Promise; + update(values: ValuesBucket, predicates: RdbPredicates): Promise; /** * Updates data in the database based on a specified instance object of RdbPredicates. @@ -4734,7 +4740,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4750,7 +4756,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4777,7 +4783,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolution): Promise; + update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolution): Promise; /** * Updates data in the database based on a specified instance object of RdbPredicates with sync interface. @@ -4786,7 +4792,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { long } The number of affected rows. + * @returns { number } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4813,7 +4819,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - updateSync(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): long; + updateSync(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): number; /** * Updates data in the database based on a specified instance object of RdbPredicates. @@ -4940,7 +4946,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { dataSharePredicates.DataSharePredicates } predicates - Indicates the specified update condition by * the instance object of {@link dataSharePredicates.DataSharePredicates}. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4969,13 +4975,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise; + update(table: string, values: ValuesBucket, predicates: dataSharePredicates.DataSharePredicates): Promise; /** * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -4986,7 +4992,7 @@ declare namespace relationalStore { * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -4999,7 +5005,7 @@ declare namespace relationalStore { * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -5023,9 +5029,10 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - delete(predicates: RdbPredicates, callback: AsyncCallback): void; + delete(predicates: RdbPredicates, callback: AsyncCallback): void; /** * Deletes data from the database based on a specified instance object of RdbPredicates. @@ -5042,7 +5049,7 @@ declare namespace relationalStore { * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } return the number of affected rows. + * @returns { Promise } return the number of affected rows. * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -5055,7 +5062,7 @@ declare namespace relationalStore { * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } return the number of affected rows. + * @returns { Promise } return the number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -5082,13 +5089,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - delete(predicates: RdbPredicates): Promise; + delete(predicates: RdbPredicates): Promise; /** * Deletes data from the database based on a specified instance object of RdbPredicates with sync interface. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @returns { long } return the number of affected rows. + * @returns { number } return the number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -5115,7 +5122,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteSync(predicates: RdbPredicates): long; + deleteSync(predicates: RdbPredicates): number; /** * Deletes data from the database based on a specified instance object of RdbPredicates. * @@ -5155,7 +5162,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { dataSharePredicates.DataSharePredicates } predicates - The specified delete condition by the instance object * of {@link dataSharePredicates.DataSharePredicates}. - * @param { AsyncCallback } callback - The number of affected rows. + * @param { AsyncCallback } callback - The number of affected rows. * @throws { BusinessError } 202 - Permission verification failed, application which is not a system application uses system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -5181,9 +5188,10 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @systemapi * @StageModelOnly - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; + delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback): void; /** * Deletes data from the database based on a specified instance object of RdbPredicates. @@ -5279,7 +5287,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ query(predicates: RdbPredicates, callback: AsyncCallback): void; @@ -5321,7 +5330,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ query(predicates: RdbPredicates, columns: Array, callback: AsyncCallback): void; @@ -5532,7 +5542,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ querySql(sql: string, callback: AsyncCallback): void; @@ -5574,7 +5585,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800015 - The database does not respond. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ querySql(sql: string, bindArgs: Array, callback: AsyncCallback): void; @@ -6072,7 +6084,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ executeSql(sql: string, callback: AsyncCallback): void; @@ -6132,7 +6145,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void; @@ -6192,7 +6206,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ executeSql(sql: string, bindArgs?: Array): Promise; @@ -6342,7 +6357,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800047 - The WAL file size exceeds the default limit. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ beginTransaction(): void; @@ -6415,14 +6431,15 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ commit(): void; /** * Commits the SQL statement executed. * - * @param { long } txId - Indicates the transaction ID which is obtained by beginTrans. + * @param { number } txId - Indicates the transaction ID which is obtained by beginTrans. * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -6445,9 +6462,10 @@ declare namespace relationalStore { * @throws { BusinessError } 14800033 - SQLite: Data type mismatch. * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ - commit(txId : long): Promise; + commit(txId : number): Promise; /** * Roll back the sql you have already executed. @@ -6488,14 +6506,15 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ rollBack(): void; /** * Rolls back the SQL statement executed. * - * @param { long } txId - Indicates the transaction ID which is obtained by beginTrans. + * @param { number } txId - Indicates the transaction ID which is obtained by beginTrans. * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 401 - Parameter error. The store must not be nullptr. * @throws { BusinessError } 14800011 - Database corrupted. @@ -6519,7 +6538,7 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 12 */ - rollback(txId : long): Promise; + rollback(txId : number): Promise; /** * Backs up a database in a specified name. @@ -6681,7 +6700,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ restore(srcName: string, callback: AsyncCallback): void; @@ -7923,7 +7943,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800029 - SQLite: The database is full. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ commit(): Promise; @@ -7942,7 +7963,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800029 - SQLite: The database is full. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ rollback(): Promise; @@ -7952,7 +7974,7 @@ declare namespace relationalStore { * @param { string } table - Indicates the target table. * @param { ValuesBucket } values - Indicates the row of data {@link ValuesBucket} to be inserted into the table. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. + * @returns { Promise } The row ID if the operation is successful. return -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -7974,7 +7996,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - insert(table: string, values: ValuesBucket, conflict?: ConflictResolution): Promise; + insert(table: string, values: ValuesBucket, conflict?: ConflictResolution): Promise; /** * Inserts a row of data into the target table with sync interface, just use in TaskPool or Worker. @@ -8010,7 +8032,7 @@ declare namespace relationalStore { * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { Promise } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8032,14 +8054,14 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsert(table: string, values: Array): Promise; + batchInsert(table: string, values: Array): Promise; /** * Inserts a batch of data into the target table. * * @param { string } table - Indicates the target table. * @param { Array } values - Indicates the rows of data {@link ValuesBucket} to be inserted into the table. - * @returns { long } The number of values that were inserted if the operation is successful. returns -1 otherwise. + * @returns { number } The number of values that were inserted if the operation is successful. returns -1 otherwise. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8061,7 +8083,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - batchInsertSync(table: string, values: Array): long; + batchInsertSync(table: string, values: Array): number; /** * Inserts a batch of data into the target table. @@ -8134,7 +8156,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { Promise } The number of affected rows. + * @returns { Promise } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8156,7 +8178,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - update(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): Promise; + update(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): Promise; /** * Updates data in the database based on a specified instance object of RdbPredicates with sync interface. @@ -8165,7 +8187,7 @@ declare namespace relationalStore { * The key-value pairs are associated with column names of the database table. * @param { RdbPredicates } predicates - Indicates the specified update condition by the instance object of {@link RdbPredicates}. * @param { ConflictResolution } conflict - Indicates the {@link ConflictResolution} to insert data into the table. - * @returns { long } The number of affected rows. + * @returns { number } The number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8187,13 +8209,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - updateSync(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): long; + updateSync(values: ValuesBucket, predicates: RdbPredicates, conflict?: ConflictResolution): number; /** * Deletes data from the database based on a specified instance object of RdbPredicates. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @returns { Promise } return the number of affected rows. + * @returns { Promise } return the number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8215,13 +8237,13 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - delete(predicates: RdbPredicates): Promise; + delete(predicates: RdbPredicates): Promise; /** * Deletes data from the database based on a specified instance object of RdbPredicates with sync interface. * * @param { RdbPredicates } predicates - The specified delete condition by the instance object of {@link RdbPredicates}. - * @returns { long } return the number of affected rows. + * @returns { number } return the number of affected rows. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -8243,7 +8265,7 @@ declare namespace relationalStore { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteSync(predicates: RdbPredicates): long; + deleteSync(predicates: RdbPredicates): number; /** * Queries data in the database based on specified conditions. @@ -8492,7 +8514,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800030 - SQLite: Unable to open the database file. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 14 + * @since arkts {'1.1':'14', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void; @@ -8614,7 +8637,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800010 - Failed to open or delete database by invalid database path. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteRdbStore(context: Context, name: string, callback: AsyncCallback): void; @@ -8633,7 +8657,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14801002 - Invalid data group ID. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback): void; @@ -8679,7 +8704,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800010 - Invalid database path. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 12 + * @since arkts {'1.1':'12', '1.2':'20'} + * @arkts 1.1&1.2 */ function deleteRdbStore(context: Context, name: string): Promise; @@ -8738,7 +8764,7 @@ declare namespace relationalStore { * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @since 18 */ - function isTokenizerSupported(tokenizer: Tokenizer): boolean; + function isTokenizerSupported(tokenizer: Tokenizer): boolean; } export default relationalStore; -- Gitee From ea87ff4c5642bab089358c749a99e3710fcbfea3 Mon Sep 17 00:00:00 2001 From: guochao Date: Thu, 26 Jun 2025 09:58:00 +0800 Subject: [PATCH 3/4] =?UTF-8?q?sdk=E4=BF=AE=E6=94=B9=20Signed-off-by:=20gu?= =?UTF-8?q?ochao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.data.relationalStore.d.ts | 37 +++++++++++++++-------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index 04bd1ccf2e..3bfc301c4a 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -2944,7 +2944,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getColumnType(columnIdentifier: number | string): Promise; @@ -2977,7 +2978,8 @@ declare namespace relationalStore { * @throws { BusinessError } 14800034 - SQLite: Library used incorrectly. * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ getColumnTypeSync(columnIdentifier: number | string): ColumnType; @@ -3424,12 +3426,12 @@ declare namespace relationalStore { getString(columnIndex: number): string; /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as long. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a long. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3437,12 +3439,12 @@ declare namespace relationalStore { * @since 9 */ /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as long. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a long. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3451,12 +3453,12 @@ declare namespace relationalStore { * @since 10 */ /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as long. * The implementation class determines whether to throw an exception if the value of the specified column * in the current row is null, the specified column is not of the integer type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a long. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -3486,12 +3488,12 @@ declare namespace relationalStore { getLong(columnIndex: number): number; /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as double. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the number type. + * in the current row is null, the specified column is not of the double type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a double. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3499,12 +3501,12 @@ declare namespace relationalStore { * @since 9 */ /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as double. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the number type. + * in the current row is null, the specified column is not of the double type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a double. * @throws { BusinessError } 14800013 - The column value is null or the column type is incompatible. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. @@ -3513,12 +3515,12 @@ declare namespace relationalStore { * @since 10 */ /** - * Obtains the value of the specified column in the current row as number. + * Obtains the value of the specified column in the current row as double. * The implementation class determines whether to throw an exception if the value of the specified column - * in the current row is null, the specified column is not of the number type. + * in the current row is null, the specified column is not of the double type. * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. - * @returns { number } The value of the specified column as a number. + * @returns { number } The value of the specified column as a double. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 14800000 - Inner error. @@ -3719,7 +3721,6 @@ declare namespace relationalStore { * * @param { number } columnIndex - Indicates the specified column index, which starts from 0. * @returns { Float32Array } The value of the specified column as a float array. - * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types. * @throws { BusinessError } 801 - The capability is not supported because the database is not a vector DB. -- Gitee From 4bdacac0e7711d5db5ec0f022bb36bd1fcbfe9e4 Mon Sep 17 00:00:00 2001 From: guochao Date: Thu, 26 Jun 2025 13:03:25 +0800 Subject: [PATCH 4/4] =?UTF-8?q?1.2=E7=89=88=E6=9C=AC=E6=96=B0=E5=A2=9EColu?= =?UTF-8?q?mnType=20Signed-off-by:=20guochao=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.data.relationalStore.d.ts | 30 +++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index 3bfc301c4a..02f3145de4 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -1704,7 +1704,8 @@ declare namespace relationalStore { * @enum { number } * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ enum ColumnType { /** @@ -1712,7 +1713,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ NULL, @@ -1723,7 +1725,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ INTEGER, @@ -1732,7 +1735,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ REAL, @@ -1741,7 +1745,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ TEXT, @@ -1750,7 +1755,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ BLOB, @@ -1759,7 +1765,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ ASSET, @@ -1768,7 +1775,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ ASSETS, @@ -1777,7 +1785,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ FLOAT_VECTOR, @@ -1786,7 +1795,8 @@ declare namespace relationalStore { * * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core * @crossplatform - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ UNLIMITED_INT, } -- Gitee