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 25f14e4a81f0bb850165164857fd4353e20452d2..9ec2eec25a63439ed6dd1ed2a13fb8476f32db45 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 管理关系数据库配置。