diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index f49a6db5ce8e98afa1885038a7d08764a9bb77b0..565969342c0cd56ad4f4b4a8406f2af39f0f66fb 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -275,6 +275,29 @@ declare namespace rdb { * @param observer Indicates the data change observer already registered . */ off(event:'dataChange', type: SubscribeType, observer: Callback>): void; + + /** + * Backup the database. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param databasePath Indicates the backup name of the database. + */ + backup(databasePath:string, callback: AsyncCallback):void; + backup(databasePath:string): Promise; + + /** + * Restore the database. + * + * @note N/A + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param newPath Indicates the restore name when the database restored. + * @param backupPath Indicates the backup name of the database. + */ + restore(newPath:string, backupPath:string, callback: AsyncCallback):void; + restore(newPath:string, backupPath:string): Promise; } /**