diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md b/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md index 04aae056fea5fb52d08ffe5d45dabb193c60e44e..c054dc17b8104720f529cc46c9961b59da782a8f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md @@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback< | 错误码ID | 错误信息 | | -------- | ---------------------------------------------------- | -| 15700010 | The dataShareHelper is not initialized successfully. | +| 15700010 | The DataShareHelper is not initialized successfully. | **示例:** @@ -120,7 +120,7 @@ createDataShareHelper(context: Context, uri: string): Promise<DataShareHelper | 错误码ID | 错误信息 | | -------- | ---------------------------------------------------- | -| 15700010 | The dataShareHelper is not initialized successfully. | +| 15700010 | The DataShareHelper is not initialized successfully. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md index 0a79d69ce73bcdc75b03d89f3ccd6036199be201..60a367834e5fa7d78ef44c40fcd31e9ef5400fdc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-preferences.md @@ -185,7 +185,7 @@ deletePreferences(context: Context, name: string, callback: AsyncCallback<voi | 错误码ID | 错误信息 | | -------- | ------------------------------| -| 15500010 | Failed to delete preferences. | +| 15500010 | Failed to delete preferences file. | **示例:** @@ -262,7 +262,7 @@ deletePreferences(context: Context, name: string): Promise<void> | 错误码ID | 错误信息 | | -------- | ------------------------------| -| 15500010 | Failed to delete preferences. | +| 15500010 | Failed to delete preferences file. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index a606f1099d03c8f6fc0bd3c11284caf0be2e2991..b6c6d530c42437a74cb373e2eea60eeb3575020b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -38,10 +38,11 @@ getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<Rd 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800010 | If failed delete database by invalid database name. | -| 14800011 | If failed open database by database corrupted. | +| **错误码ID** | **错误信息** | +| ------------ | ----------------------------------------------------------- | +| 14800010 | Failed to open or delete database by invalid database path. | +| 14800011 | Failed to open database by database corrupted. | +| 14800000 | Inner error. | **示例:** @@ -121,10 +122,11 @@ getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800010 | If failed delete database by invalid database name. | -| 14800011 | If failed open database by database corrupted. | +| **错误码ID** | **错误信息** | +| ------------ | ----------------------------------------------------------- | +| 14800010 | Failed to open or delete database by invalid database path. | +| 14800011 | Failed to open database by database corrupted. | +| 14800000 | Inner error. | **示例:** @@ -196,9 +198,10 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800010 | If failed delete database by invalid database name. | +| **错误码ID** | **错误信息** | +| ------------ | ----------------------------------------------------------- | +| 14800010 | Failed to open or delete database by invalid database path. | +| 14800000 | Inner error. | **示例:** @@ -262,9 +265,10 @@ deleteRdbStore(context: Context, name: string): Promise<void> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800010 | If failed delete database by invalid database name. | +| **错误码ID** | **错误信息** | +| ------------ | ----------------------------------------------------------- | +| 14800010 | Failed to open or delete database by invalid database path. | +| 14800000 | Inner error. | **示例:** @@ -1289,9 +1293,10 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1332,9 +1337,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1379,9 +1385,10 @@ insert(table: string, values: ValuesBucket):Promise<number> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1426,9 +1433,10 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1467,9 +1475,10 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1528,9 +1537,10 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number& 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1583,9 +1593,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback& 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1628,9 +1639,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1677,9 +1689,10 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1726,9 +1739,10 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1774,9 +1788,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1829,9 +1844,10 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1872,9 +1888,10 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1914,9 +1931,10 @@ delete(predicates: RdbPredicates):Promise<number> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -1955,9 +1973,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -2003,9 +2022,10 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -2037,6 +2057,14 @@ query(predicates: RdbPredicates, columns: Array<string>, callback: AsyncCa | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2067,6 +2095,14 @@ query(predicates: RdbPredicates, columns?: Array<string>):Promise<Resul | predicates | [RdbPredicates](#rdbpredicates) | 是 | RdbPredicates的实例对象指定的查询条件。 | | columns | Array<string> | 否 | 表示要查询的列。如果值为空,则查询应用于所有列。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **返回值**: | 类型 | 说明 | @@ -2108,6 +2144,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2150,6 +2194,14 @@ query(table: string, predicates: dataSharePredicates.DataSharePredicates, column | ------------------------------------------------------- | -------------------------------------------------- | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2187,6 +2239,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A | columns | Array<string> | 是 | 表示要查询的列。如果值为空,则查询应用于所有列。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2245,6 +2305,14 @@ remoteQuery(device: string, table: string, predicates: RdbPredicates, columns: A | ------------------------------------------------------------ | -------------------------------------------------- | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2289,6 +2357,14 @@ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback& | bindArgs | Array<[ValueType](#valuetype)> | 是 | SQL语句中参数的值。该值与sql参数语句中的占位符相对应。当sql参数语句完整时,该参数需为空数组。 | | callback | AsyncCallback<[ResultSet](#resultset)> | 是 | 指定callback回调函数。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2323,6 +2399,14 @@ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet> | ------------------------------------------------------- | -------------------------------------------------- | | Promise<[ResultSet](#resultset)> | Promise对象。如果操作成功,则返回ResultSet对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2355,9 +2439,10 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -2397,9 +2482,10 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -2425,9 +2511,10 @@ beginTransaction():void 以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 -| **错误码ID** | **错误信息** | -| ------------ | ----------------------- | -| 14800047 | The WAL file size exceeds the default limit.| +| **错误码ID** | **错误信息** | +| ------------ | -------------------------------------------- | +| 14800047 | The WAL file size exceeds the default limit. | +| 14800000 | Inner error. | **示例:** @@ -2544,6 +2631,14 @@ backup(destName:string, callback: AsyncCallback<void>):void | destName | string | 是 | 指定数据库的备份文件名。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2576,6 +2671,14 @@ backup(destName:string): Promise<void> | ------------------- | ------------------------- | | Promise<void> | 无返回结果的Promise对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2602,6 +2705,14 @@ restore(srcName:string, callback: AsyncCallback<void>):void | srcName | string | 是 | 指定数据库的备份文件名。 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2634,6 +2745,14 @@ restore(srcName:string): Promise<void> | ------------------- | ------------------------- | | Promise<void> | 无返回结果的Promise对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2662,6 +2781,14 @@ setDistributedTables(tables: Array<string>, callback: AsyncCallback<voi | tables | Array<string> | 是 | 要设置的分布式列表表名 | | callback | AsyncCallback<void> | 是 | 指定callback回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2696,6 +2823,14 @@ store.setDistributedTables(["EMPLOYEE"], function (err) { | ------------------- | ------------------------- | | Promise<void> | 无返回结果的Promise对象。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2729,6 +2864,14 @@ obtainDistributedTableName(device: string, table: string, callback: AsyncCallbac | table | string | 是 | 远程设备的本地表名。 | | callback | AsyncCallback<string> | 是 | 指定的callback回调函数。如果操作成功,返回远程设备的分布式表名。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2782,6 +2925,14 @@ store.obtainDistributedTableName(deviceId, "EMPLOYEE", function (err, tableName) | --------------------- | ----------------------------------------------------- | | Promise<string> | Promise对象。如果操作成功,返回远程设备的分布式表名。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2825,6 +2976,14 @@ sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array | predicates | [RdbPredicates](#rdbpredicates) | 是 | 约束同步数据和设备。 | | callback | AsyncCallback<Array<[string, number]>> | 是 | 指定的callback回调函数,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -2881,6 +3040,14 @@ store.sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, function (err, r | -------------------------------------------- | ------------------------------------------------------------ | | Promise<Array<[string, number]>> | Promise对象,用于向调用者发送同步结果。string:设备ID;number:每个设备同步状态,0表示成功,其他值表示失败。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ---------------------------- | +| 14800000 | Inner error. | + **示例:** ```js @@ -3111,7 +3278,7 @@ goTo(offset:number): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3152,7 +3319,7 @@ goToRow(position: number): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3188,7 +3355,7 @@ goToFirstRow(): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3223,7 +3390,7 @@ goToLastRow(): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3258,7 +3425,7 @@ goToNextRow(): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3293,7 +3460,7 @@ goToPreviousRow(): boolean | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | **示例:** @@ -3328,6 +3495,14 @@ getBlob(columnIndex: number): Uint8Array | ---------- | -------------------------------- | | Uint8Array | 以字节数组的形式返回指定列的值。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ------------------------------------------------------------ | +| 14800013 | The column value is null or the column type is incompatible. | + **示例:** ```js @@ -3354,6 +3529,14 @@ getString(columnIndex: number): string | ------ | ---------------------------- | | string | 以字符串形式返回指定列的值。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ------------------------------------------------------------ | +| 14800013 | The column value is null or the column type is incompatible. | + **示例:** ```js @@ -3380,6 +3563,14 @@ getLong(columnIndex: number): number | ------ | ------------------------------------------------------------ | | number | 以Long形式返回指定列的值。
该接口支持的数据范围是:Number.MIN_SAFE_INTEGER ~ Number.MAX_SAFE_INTEGER,若超出该范围,建议使用[getDouble](#getdouble)。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ------------------------------------------------------------ | +| 14800013 | The column value is null or the column type is incompatible. | + **示例:** ```js @@ -3406,6 +3597,14 @@ getDouble(columnIndex: number): number | ------ | ---------------------------- | | number | 以double形式返回指定列的值。 | +**错误码:** + +以下错误码的详细介绍请参见[关系型数据库错误码](../errorcodes/errorcode-data-rdb.md)。 + +| **错误码ID** | **错误信息** | +| ------------ | ------------------------------------------------------------ | +| 14800013 | The column value is null or the column type is incompatible. | + **示例:** ```js @@ -3472,4 +3671,4 @@ promiseClose.then((resultSet) => { | **错误码ID** | **错误信息** | | ------------ | ------------------------------------------------------------ | -| 14800012 | The result set is empty or the specified location is invalid. | +| 14800012 | The result set is empty or the specified location is invalid. | diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md index 5fee0c6d8619bee3085668be83cc2450769f7422..397f89356ff359417ed9b7e5c55fc26babcbef2b 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md @@ -4,29 +4,47 @@ > > 以下仅介绍本模块特有错误码,通用错误码请参考[通用错误码说明文档](errorcode-universal.md)。 +## 14800000 内部错误 + +**错误信息** + +Inner error. + +**错误描述** + +数据库底层发生错误。 + +**可能原因** + +传入SQL语句非法等。 + +**处理步骤** + +需通过日志信息确认错误发生原因。 + ## 14800010 数据库名称不合法 **错误信息** -Invalid database name. +Failed to open or delete database by invalid database path. **错误描述** -数据库名称不合法。 +数据库路径不合法。 **可能原因** -无效的数据库名称,数据库名称为空或包含的字符超出1024字节。 +无效的数据库路径。 **处理步骤** -检查传入数据库名称,检查数据库名称是否为空或包含的字符超出1024字节。 +检查传入数据库路径。 ## 14800011 数据库文件损坏 **错误信息** -Database corrupted. +Failed to open database by database corrupted. **错误描述** @@ -45,7 +63,7 @@ Database corrupted. **错误信息** -The result set is empty or the specified location is invalid. +The result set is empty or the specified location is invalid. **错误描述** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md b/zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md index 4f7446c3eaed0fd052f5f5490c5845c8f1699379..46b6f21845ad06667c31091c0c9d34d11f64093c 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md @@ -8,7 +8,7 @@ **错误信息** -The dataShareHelper is not initialized successfully. +The DataShareHelper is not initialized successfully. **错误描述** diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md b/zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md index 2a7fca5cc095bc5a4823f9ce587d7487adbb74de..071575710ca79ca294017cbf906527e06cbe7d15 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md @@ -7,7 +7,7 @@ ## 15500010 删除用户首选项持久化文件失败 **错误信息** -Failed to delete preferences. +Failed to delete preferences file. **错误描述**