Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
ad296d0f
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
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看板
提交
ad296d0f
编写于
3月 25, 2023
作者:
Y
ylq121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
errcode
Signed-off-by:
N
ylq121
<
yangqing89@huawei.com
>
上级
aef3a217
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
58 addition
and
9 deletion
+58
-9
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
...lication-dev/reference/apis/js-apis-distributedKVStore.md
+35
-4
zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md
...-dev/reference/errorcodes/errorcode-distributedKVStore.md
+23
-5
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
浏览文件 @
ad296d0f
...
...
@@ -2112,6 +2112,7 @@ put(key: string, value: Uint8Array | string | number | boolean, callback: AsyncC
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2161,6 +2162,7 @@ put(key: string, value: Uint8Array | string | number | boolean): Promise<void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2202,6 +2204,7 @@ putBatch(entries: Entry[], callback: AsyncCallback<void>): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2269,6 +2272,7 @@ putBatch(entries: Entry[]): Promise<void>
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2329,6 +2333,7 @@ putBatch(value: Array<ValuesBucket>, callback: AsyncCallback<void>):
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2386,6 +2391,7 @@ putBatch(value: Array<ValuesBucket>): Promise<void>
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2434,6 +2440,7 @@ delete(key: string, callback: AsyncCallback<void>): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2489,6 +2496,7 @@ delete(key: string): Promise<void>
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2537,6 +2545,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallb
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2587,6 +2596,7 @@ delete(predicates: dataSharePredicates.DataSharePredicates): Promise<void>
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2636,6 +2646,7 @@ deleteBatch(keys: string[], callback: AsyncCallback<void>): void
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -2704,6 +2715,7 @@ deleteBatch(keys: string[]): Promise<void>
| ------------ | -------------------------------------- |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -3223,9 +3235,11 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KVStoreResultSet>)
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
**示例:**
```
js
...
...
@@ -3297,6 +3311,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3360,6 +3375,7 @@ getResultSet(query: Query, callback: AsyncCallback<KVStoreResultSet>): voi
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3428,6 +3444,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3490,6 +3507,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -3551,6 +3569,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -4030,6 +4049,7 @@ startTransaction(callback: AsyncCallback<void>): void
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -4098,6 +4118,7 @@ startTransaction(): Promise<void>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100005 | Database or result set already closed. |
| 14800047 | WAL file size exceeds the default limit|
**示例:**
...
...
@@ -4646,7 +4667,7 @@ on(event: 'dataChange', type: SubscribeType, listener: Callback<ChangeNotific
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max
subscribe limits.
|
| 15100001 | Over max
limits.
|
| 15100005 | Database or result set already closed. |
**示例:**
...
...
@@ -4757,9 +4778,7 @@ off(event: 'syncComplete', syncCallback?: Callback<Array<[string, number]&
取消订阅同步完成事件回调通知。
**系统能力:**
SystemCapability.DistributedDataManager.KVStore.Core
**参数:**
**系统能力:**
SystemCapability.DistributedDataManager.KVStore.
| 参数名 | 类型 | 必填 | 说明 |
| ------------ | --------------------------------------------- | ---- | ---------------------------------------------------------- |
...
...
@@ -5634,6 +5653,7 @@ getResultSet(keyPrefix: string, callback: AsyncCallback<KVStoreResultSet>)
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5708,6 +5728,7 @@ getResultSet(keyPrefix: string): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5772,6 +5793,7 @@ getResultSet(deviceId: string, keyPrefix: string, callback: AsyncCallback<KVS
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5828,6 +5850,7 @@ getResultSet(deviceId: string, keyPrefix: string): Promise<KVStoreResultSet&g
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5875,6 +5898,7 @@ getResultSet(deviceId: string, query: Query, callback: AsyncCallback<KVStoreR
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -5952,6 +5976,7 @@ getResultSet(deviceId: string, query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6025,6 +6050,7 @@ getResultSet(query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6091,6 +6117,7 @@ getResultSet(deviceId: string, query: Query): Promise<KVStoreResultSet>
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6161,6 +6188,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates, callback: Asyn
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6222,6 +6250,7 @@ getResultSet(predicates: dataSharePredicates.DataSharePredicates): Promise<KV
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6275,6 +6304,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
@@ -6337,6 +6367,7 @@ getResultSet(deviceId: string, predicates: dataSharePredicates.DataSharePredicat
|
**错误码ID**
|
**错误信息**
|
| ------------ | -------------------------------------- |
| 15100001 | Over max limits. |
| 15100003 | Database corrupted. |
| 15100005 | Database or result set already closed. |
...
...
zh-cn/application-dev/reference/errorcodes/errorcode-distributedKVStore.md
浏览文件 @
ad296d0f
...
...
@@ -8,19 +8,20 @@
**错误信息**
Over max
subscribe
limits.
Over max limits.
**错误描述**
该错误码表示在调用数据库变化订阅on接口时,订阅数量已超过最大限制
。
超过数据库最大支持上限
。
**可能原因**
在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。
1.
在调用订阅数据库变化接口时,对数据库的订阅数量已超过最大限制。
2.
数据库当前打开的结果集数目超过最大限制。
**处理步骤**
取消对数据库的部分订阅后,再次尝试订阅
。
如果当前操作为数据库订阅操作,取消对数据库的部分订阅后,再次尝试订阅,否则,关闭部分打开的结果集后重试
。
## 15100002 打开已有数据库时参数配置发生变化
...
...
@@ -102,4 +103,21 @@ Database or result set already closed.
**处理步骤**
1.
在数据库相关操作前,请重新打开数据库之后再重试当前操作。
2.
在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。
\ No newline at end of file
2.
在查询结果集相关操作前,请重新查询获取结果集之后再重试当前操作。
## 14800047 WAL文件大小超过默认值
**错误信息**
WAL file size exceeds the default limit.
**错误描述**
WAL文件大小超过默认上限。
**可能原因**
WAL文件大小超过默认上限。
**处理步骤**
1.
检查结果集或者事务是否未关闭。
2.
关闭所有结果集或者事务。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录