Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
f20d365f
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f20d365f
编写于
5月 19, 2023
作者:
L
LiRui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify error code description
Signed-off-by:
N
LiRui
<
lirui.WX1229126@huawei.com
>
上级
3353dda3
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
307 addition
and
90 deletion
+307
-90
zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md
.../application-dev/reference/apis/js-apis-data-dataShare.md
+2
-2
zh-cn/application-dev/reference/apis/js-apis-data-preferences.md
...pplication-dev/reference/apis/js-apis-data-preferences.md
+2
-2
zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md
...cation-dev/reference/apis/js-apis-data-relationalStore.md
+277
-78
zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md
...pplication-dev/reference/errorcodes/errorcode-data-rdb.md
+24
-6
zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md
...plication-dev/reference/errorcodes/errorcode-datashare.md
+1
-1
zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md
...ication-dev/reference/errorcodes/errorcode-preferences.md
+1
-1
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-data-dataShare.md
浏览文件 @
f20d365f
...
...
@@ -65,7 +65,7 @@ createDataShareHelper(context: Context, uri: string, callback: AsyncCallback<
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------------------- |
| 15700010 | The
d
ataShareHelper is not initialized successfully. |
| 15700010 | The
D
ataShareHelper is not initialized successfully. |
**示例:**
...
...
@@ -120,7 +120,7 @@ createDataShareHelper(context: Context, uri: string): Promise<DataShareHelper
| 错误码ID | 错误信息 |
| -------- | ---------------------------------------------------- |
| 15700010 | The
d
ataShareHelper is not initialized successfully. |
| 15700010 | The
D
ataShareHelper is not initialized successfully. |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-data-preferences.md
浏览文件 @
f20d365f
...
...
@@ -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
. |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md
浏览文件 @
f20d365f
...
...
@@ -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形式返回指定列的值。
<br>
该接口支持的数据范围是: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. |
zh-cn/application-dev/reference/errorcodes/errorcode-data-rdb.md
浏览文件 @
f20d365f
...
...
@@ -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 数据库文件损坏
**错误信息**
D
atabase corrupted.
Failed to open database by d
atabase 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.
**错误描述**
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-datashare.md
浏览文件 @
f20d365f
...
...
@@ -8,7 +8,7 @@
**错误信息**
The
d
ataShareHelper is not initialized successfully.
The
D
ataShareHelper is not initialized successfully.
**错误描述**
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-preferences.md
浏览文件 @
f20d365f
...
...
@@ -7,7 +7,7 @@
## 15500010 删除用户首选项持久化文件失败
**错误信息**
Failed to delete preferences.
Failed to delete preferences
file
.
**错误描述**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录