diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d77415c1bd1a037c2d2b5a9985eb892b9b20753b..732fc96ea4808bdb0b30107677e47b6f5cae38ab 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -50,11 +50,12 @@ declare namespace rdb { * @since 7 * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car + * @param path Indicates the database path. * @param name Indicates the database name. * @return Returns true if the database is deleted; returns false otherwise. */ - function deleteRdbStore(name: string, callback: AsyncCallback): void; - function deleteRdbStore(name: string): Promise; + function deleteRdbStore(path: string, name: string, callback: AsyncCallback): void; + function deleteRdbStore(path: string, name: string): Promise; /** * Provides methods for managing the relational database (RDB). @@ -171,11 +172,21 @@ declare namespace rdb { * @permission N/A */ interface StoreConfig { + /** + * Indicates the path of the database file + * + * @since 7 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + */ + path: string; + /** * Indicates the name of the database file * * @since 7 * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car */ name: string; }