From b8e5db2ef55c0f6bdcab77a14a9209ca6b7ff3b4 Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Mon, 17 Jan 2022 12:09:26 +0800 Subject: [PATCH 1/4] add set table to be distributed API Signed-off-by: wuchunbo --- api/@ohos.data.rdb.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 498bebb88a..c42f6b7e6e 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -194,6 +194,18 @@ declare namespace rdb { */ rollBack(callback: AsyncCallback):void; rollBack(): Promise; + + /** + * set table to be distributed table + * + * @note N/A + * @since 8 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @param tables the tables name you want to set + * @devices phone, tablet, tv, wearable, car + */ + setTableDistributed(tables: Array, callback: AsyncCallback): void; + setTableDistributed(tables: Array): Promise } /** -- Gitee From ee5cdb9b122772ffec1ccf4dd91e853dacc19ffc Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Mon, 17 Jan 2022 17:18:38 +0800 Subject: [PATCH 2/4] change API name to setDistributedTables Signed-off-by: wuchunbo --- api/@ohos.data.rdb.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index c42f6b7e6e..5d67330d6c 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -204,8 +204,8 @@ declare namespace rdb { * @param tables the tables name you want to set * @devices phone, tablet, tv, wearable, car */ - setTableDistributed(tables: Array, callback: AsyncCallback): void; - setTableDistributed(tables: Array): Promise + setDistributedTables(tables: Array, callback: AsyncCallback): void; + setDistributedTables(tables: Array): Promise } /** -- Gitee From 2b2c98dc463b3c36d4993ef25e9705222179f391 Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Mon, 17 Jan 2022 17:26:04 +0800 Subject: [PATCH 3/4] fix syntax error Signed-off-by: wuchunbo --- api/@ohos.data.rdb.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 5d67330d6c..0b38d7da87 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -205,7 +205,7 @@ declare namespace rdb { * @devices phone, tablet, tv, wearable, car */ setDistributedTables(tables: Array, callback: AsyncCallback): void; - setDistributedTables(tables: Array): Promise + setDistributedTables(tables: Array): Promise; } /** -- Gitee From 16bbc7d6d6ca79a4a78c882c3b1f38f4d82c7217 Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Mon, 17 Jan 2022 17:28:25 +0800 Subject: [PATCH 4/4] change comment Signed-off-by: wuchunbo --- api/@ohos.data.rdb.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 0b38d7da87..dfbcea11da 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -196,7 +196,7 @@ declare namespace rdb { rollBack(): Promise; /** - * set table to be distributed table + * Set table to be distributed table. * * @note N/A * @since 8 -- Gitee