From 8b171edd11d017900e531d19f20684da3e51bb0b Mon Sep 17 00:00:00 2001 From: wufengshan Date: Sun, 30 Jan 2022 10:18:54 +0800 Subject: [PATCH] Remove changeEncryptKey JS interface --- .../reference/apis/js-apis-data-rdb.md | 49 ------------------- 1 file changed, 49 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 11be31f50c4..2c903284b37 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 @@ -1127,55 +1127,6 @@ executeSql(sql: string, bindArgs: Array<ValueType>):Promise<void> 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