From 3162eea5a8a664e038bacff093eaeff20dad6841 Mon Sep 17 00:00:00 2001 From: wufengshan Date: Sun, 30 Jan 2022 15:06:17 +0800 Subject: [PATCH] Signed-off-by: wu-fengshan Changes to be committed: modified: zh-cn/application-dev/reference/apis/js-apis-data-rdb.md --- .../reference/apis/js-apis-data-rdb.md | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md index 25f14e4a81f..9ec2eec25a6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md @@ -1173,56 +1173,6 @@ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> promise.then(() => { console.info(TAG + 'delete done.')}) ``` - -### changeEncryptKey8+ - -changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback<number>):void - -修改数据库原有秘钥,结果以callbck形式返回。 - -- 参数: - - | 参数名 | 类型 | 必填 | 说明 | - | ------------- | --------------------------- | ---- | ------------------------------ | - | newEncryptKey | Uint8Array | 是 | 要变更的数据库秘钥,不能为空。 | - | callback | AsyncCallback<number> | 是 | 指定callback回调函数。 | - -- 示例: - - ``` - var newKey = new Uint8Array([1, 2]) - rdbStore.changeEncryptKey(newKey, function (ret) { - console.info(TAG + "result is " + ret)}) - ``` - - -### changeEncryptKey8+ - -changeEncryptKey(newEncryptKey:Uint8Array): Promise<number> - -修改数据库原有秘钥,结果以Promise形式返回。 - -- 参数: - - | 参数名 | 类型 | 必填 | 说明 | - | ------------- | ---------- | ---- | ------------------------------ | - | newEncryptKey | Uint8Array | 是 | 要变更的数据库秘钥,不能为空。 | - -- 返回值: - - | 类型 | 说明 | - | --------------------- | --------------------- | - | Promise<number> | 指定Promise回调函数。 | - -- 示例: - - ``` - var newKey = new Uint8Array([1, 2]) - let promise = rdbStore.changeEncryptKey(newKey) - promise.then((ret) => { - console.info(TAG + "result is " + ret)}) - ``` - ## StoreConfig 管理关系数据库配置。 -- Gitee