From 4f86759c0cf6afc0ed652d12dc846fa0ec3faef4 Mon Sep 17 00:00:00 2001 From: smagicyun Date: Thu, 14 Oct 2021 12:03:55 +0800 Subject: [PATCH] chang rdb store parameter context to path Signed-off-by: smagicyun --- api/@ohos.data.rdb.d.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index d77415c1bd..732fc96ea4 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; } -- Gitee