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
...
...
@@ -39,9 +39,10 @@ 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. |
| ------------ | ----------------------------------------------------------- |
| 14800010 | Failed to open or delete database by invalid database path. |
| 14800011 | Failed to open database by database corrupted. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -122,9 +123,10 @@ 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. |
| ------------ | ----------------------------------------------------------- |
| 14800010 | Failed to open or delete database by invalid database path. |
| 14800011 | Failed to open database by database corrupted. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -197,8 +199,9 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void&g
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800010 | If failed delete database by invalid database name. |
| ------------ | ----------------------------------------------------------- |
| 14800010 | Failed to open or delete database by invalid database path. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -263,8 +266,9 @@ deleteRdbStore(context: Context, name: string): Promise<void>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800010 | If failed delete database by invalid database name. |
| ------------ | ----------------------------------------------------------- |
| 14800010 | Failed to open or delete database by invalid database path. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1290,8 +1294,9 @@ insert(table: string, values: ValuesBucket, callback: AsyncCallback<number>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1333,8 +1338,9 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution, callb
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1380,8 +1386,9 @@ insert(table: string, values: ValuesBucket):Promise<number>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1427,8 +1434,9 @@ insert(table: string, values: ValuesBucket, conflict: ConflictResolution):Promi
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1468,8 +1476,9 @@ batchInsert(table: string, values: Array<ValuesBucket>, callback: AsyncCal
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1529,8 +1538,9 @@ batchInsert(table: string, values: Array<ValuesBucket>):Promise<number&
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1584,8 +1594,9 @@ update(values: ValuesBucket, predicates: RdbPredicates, callback: AsyncCallback&
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1629,8 +1640,9 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1678,8 +1690,9 @@ update(values: ValuesBucket, predicates: RdbPredicates):Promise<number>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1727,8 +1740,9 @@ update(values: ValuesBucket, predicates: RdbPredicates, conflict: ConflictResolu
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1775,8 +1789,9 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1830,8 +1845,9 @@ update(table: string, values: ValuesBucket, predicates: dataSharePredicates.Data
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1873,8 +1889,9 @@ delete(predicates: RdbPredicates, callback: AsyncCallback<number>):void
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1915,8 +1932,9 @@ delete(predicates: RdbPredicates):Promise<number>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -1956,8 +1974,9 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates, callb
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -2004,8 +2023,9 @@ delete(table: string, predicates: dataSharePredicates.DataSharePredicates):Promi
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 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
...
...
@@ -2356,8 +2440,9 @@ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallbac
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -2398,8 +2483,9 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void>
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 14800047 | The WAL file size exceeds the default limit. |
| 14800000 | Inner error. |
**示例:**
...
...
@@ -2426,8 +2512,9 @@ beginTransaction():void
以下错误码的详细介绍请参见
[
关系型数据库错误码
](
../errorcodes/errorcode-data-rdb.md
)
。
|
**错误码ID**
|
**错误信息**
|
| ------------ | ----------------------- |
| 14800047 | The WAL file size exceeds the default limit.|
| ------------ | -------------------------------------------- |
| 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
...
...
@@ -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
...
...
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.
**错误描述**
...
...
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录