Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
453bdcd9
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看板
提交
453bdcd9
编写于
2月 19, 2022
作者:
A
annie_wangli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
annie_wangli
<
annie.wangli@huawei.com
>
上级
9ed4dd08
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
0 addition
and
51 deletion
+0
-51
en/application-dev/reference/apis/js-apis-data-rdb.md
en/application-dev/reference/apis/js-apis-data-rdb.md
+0
-51
未找到文件。
en/application-dev/reference/apis/js-apis-data-rdb.md
浏览文件 @
453bdcd9
...
@@ -2557,57 +2557,6 @@ Runs the SQL statement that contains the specified parameters but does not retur
...
@@ -2557,57 +2557,6 @@ Runs the SQL statement that contains the specified parameters but does not retur
```
```
### changeEncryptKey<sup>8+</sup><a name="section9826112313811"></a>
changeEncryptKey
\(
newEncryptKey:Uint8Array, callback: AsyncCallback<number
\>\)
:void
Changes the encryption key of the RDB store. This method uses a callback to return the result.
-
Parameters
<a name="table1582620236816"></a>
<table><thead align="left"><tr id="row198271123680"><th class="cellrowborder" valign="top" width="14.451487079473427%" id="mcps1.1.5.1.1"><p id="p178273231782"><a name="p178273231782"></a><a name="p178273231782"></a>Name</p>
</th>
<th class="cellrowborder" valign="top" width="18.95660653339834%" id="mcps1.1.5.1.2"><p id="p15827123789"><a name="p15827123789"></a><a name="p15827123789"></a>Type</p>
</th>
<th class="cellrowborder" valign="top" width="6.825938566552901%" id="mcps1.1.5.1.3"><p id="p182722312815"><a name="p182722312815"></a><a name="p182722312815"></a>Mandatory</p>
</th>
<th class="cellrowborder" valign="top" width="59.76596782057533%" id="mcps1.1.5.1.4"><p id="p158275237811"><a name="p158275237811"></a><a name="p158275237811"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1482711231385"><td class="cellrowborder" valign="top" width="14.451487079473427%" headers="mcps1.1.5.1.1 "><p id="p1616416148913"><a name="p1616416148913"></a><a name="p1616416148913"></a>newEncryptKey</p>
</td>
<td class="cellrowborder" valign="top" width="18.95660653339834%" headers="mcps1.1.5.1.2 "><p id="p141642147914"><a name="p141642147914"></a><a name="p141642147914"></a>Uint8Array</p>
</td>
<td class="cellrowborder" valign="top" width="6.825938566552901%" headers="mcps1.1.5.1.3 "><p id="p16164141412917"><a name="p16164141412917"></a><a name="p16164141412917"></a>Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59.76596782057533%" headers="mcps1.1.5.1.4 "><p id="p1316418141594"><a name="p1316418141594"></a><a name="p1316418141594"></a>New encryption key. This parameter cannot be empty.</p>
</td>
</tr>
<tr id="row88288231188"><td class="cellrowborder" valign="top" width="14.451487079473427%" headers="mcps1.1.5.1.1 "><p id="p58291323485"><a name="p58291323485"></a><a name="p58291323485"></a>callback</p>
</td>
<td class="cellrowborder" valign="top" width="18.95660653339834%" headers="mcps1.1.5.1.2 "><p id="p1182912317813"><a name="p1182912317813"></a><a name="p1182912317813"></a>AsyncCallback<number></p>
</td>
<td class="cellrowborder" valign="top" width="6.825938566552901%" headers="mcps1.1.5.1.3 "><p id="p98291223787"><a name="p98291223787"></a><a name="p98291223787"></a>Yes</p>
</td>
<td class="cellrowborder" valign="top" width="59.76596782057533%" headers="mcps1.1.5.1.4 "><p id="p18291223589"><a name="p18291223589"></a><a name="p18291223589"></a>Callback invoked to return the result.</p>
</td>
</tr>
</tbody>
</table>
-
Example
```
var newKey = new Uint8Array([1, 2])
rdbStore.changeEncryptKey(newKey, function (ret) {
console.info(TAG + "result is " + ret)})
```
## StoreConfig<a name="section957124521217"></a>
## StoreConfig<a name="section957124521217"></a>
Manages the configuration of an RDB store.
Manages the configuration of an RDB store.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录