diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d77415c1bd1a037c2d2b5a9985eb892b9b20753b..df961acd5e8219025808a1de1473dfe0e5da5ad3 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -135,6 +135,18 @@ 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 8 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + * @param newEncryptKey the encrypted key is uint8 form in a vector. + */ + changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; + changeEncryptKey(newEncryptKey:Uint8Array): Promise; } /** @@ -174,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; } /**