From 14deb5afc0610f2322234e75afeb737d4fea99fc Mon Sep 17 00:00:00 2001 From: lichenlong1 Date: Tue, 30 Nov 2021 20:57:30 +0800 Subject: [PATCH 1/2] * description : from OpenHarmony/distributeddatamgr_appdatamgr issue no is #I4FZ6G Signed-off-by: lichenlong1 --- api/@ohos.data.rdb.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d77415c1bd..1d867e877c 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -135,6 +135,19 @@ declare namespace rdb { */ executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void; executeSql(sql: string, bindArgs: Array): Promise; + + /** + * change the encrypted key(not null) if the database is configured with encrypted key. + * + * @note N/A + * @since 7 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + * @param the encrypted key is uint8 form in a vector. + * @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings. + */ + changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; + changeEncryptKey(newEncryptKey:Uint8Array): Promise; } /** -- Gitee From 330401822fb99fd081f1615a8c77b9d7f636b796 Mon Sep 17 00:00:00 2001 From: lichenlong1 Date: Mon, 6 Dec 2021 17:23:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?description=20=EF=BC=9A=20add=20changeEncry?= =?UTF-8?q?ptKey=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lichenlong1 --- api/@ohos.data.rdb.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 1d867e877c..df961acd5e 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -140,14 +140,13 @@ declare namespace rdb { * change the encrypted key(not null) if the database is configured with encrypted key. * * @note N/A - * @since 7 + * @since 8 * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car - * @param the encrypted key is uint8 form in a vector. - * @param bindArgs Indicates the values of the parameters in the SQL statement. The values are strings. + * @param newEncryptKey the encrypted key is uint8 form in a vector. */ - changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; - changeEncryptKey(newEncryptKey:Uint8Array): Promise; + changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; + changeEncryptKey(newEncryptKey:Uint8Array): Promise; } /** @@ -187,10 +186,11 @@ declare namespace rdb { /** * Indicates the name of the database file * - * @since 7 + * @since 8 * @sysCap SystemCapability.Data.DATA_APPDATAMGR */ name: string; + encryptKey: Uint8Array; } /** -- Gitee