From 14deb5afc0610f2322234e75afeb737d4fea99fc Mon Sep 17 00:00:00 2001 From: lichenlong1 Date: Tue, 30 Nov 2021 20:57:30 +0800 Subject: [PATCH] * 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