diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d77415c1bd1a037c2d2b5a9985eb892b9b20753b..1d867e877c8e397bb80946bad818cac612ccc37b 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; } /**