diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index ebb6a1bc906d35a52defc3a547310bbe39fb1477..b0b92f6f1428ea847824683daa3c7c89e90031fc 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -237,6 +237,26 @@ declare namespace rdb { */ rollBack():void; + /** + * Backs up a database in a specified name. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param destName Indicates the name that saves the database backup. + */ + backup(destName:string, callback: AsyncCallback):void; + backup(destName:string): Promise; + + /** + * Restores a database from a specified database file. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param srcName Indicates the name that saves the database file. + */ + restore(srcName:string, callback: AsyncCallback):void; + restore(srcName:string): Promise; + /** * Set table to be distributed table. *