diff --git a/api/@ohos.data.relationalStore.d.ts b/api/@ohos.data.relationalStore.d.ts index a47fbcfabc74e8709479beb41450bef3820107b7..e616360be8e8758a42c7f7d83f748e43f0bd9cda 100644 --- a/api/@ohos.data.relationalStore.d.ts +++ b/api/@ohos.data.relationalStore.d.ts @@ -4333,6 +4333,28 @@ declare namespace relationalStore { */ batchInsertWithConflictResolutionSync(table: string, values: Array, conflict: ConflictResolution): number; + /** + * Changes the key used to encrypt the database. + * + * @param { CryptoParam } cryptoParam - Crypto parameters. + * @returns { Promise } - Promise that returns no value. + * @throws { BusinessError } 801 - Capability not supported. + * @throws { BusinessError } 14800011 - Database corrupted. + * @throws { BusinessError } 14800014 - Already closed. + * @throws { BusinessError } 14800015 - The database does not respond. + * @throws { BusinessError } 14800021 - SQLite: Generic error. + * @throws { BusinessError } 14800023 - SQLite: Access permission denied. + * @throws { BusinessError } 14800024 - SQLite: The database file is locked. + * @throws { BusinessError } 14800026 - SQLite: The database is out of memory. + * @throws { BusinessError } 14800027 - SQLite: Attempt to write a readonly database. + * @throws { BusinessError } 14800028 - SQLite: Some kind of disk I/O error occurred. + * @throws { BusinessError } 14800029 - SQLite: The database is full. + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @crossplatform + * @since 20 + */ + rekey(cryptoParam?: CryptoParam): Promise; + /** * Updates data in the database based on a specified instance object of RdbPredicates. *