From 2448083aad5b70576a47b552424c3345135960fa Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Fri, 14 Jan 2022 11:38:29 +0800 Subject: [PATCH 1/2] add setDistributedTables API --- 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..4de46142e0 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 + */ + setDistributedTables(tables: string[], callback: AsyncCallback): void; + setDistributedTables(tables: string[]): Promise } /** -- Gitee From 1de271523bca3d70721caf34aa78146ff0312355 Mon Sep 17 00:00:00 2001 From: wuchunbo Date: Mon, 17 Jan 2022 11:45:05 +0800 Subject: [PATCH 2/2] change string[] to Array 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 4de46142e0..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 */ - setDistributedTables(tables: string[], callback: AsyncCallback): void; - setDistributedTables(tables: string[]): Promise + setDistributedTables(tables: Array, callback: AsyncCallback): void; + setDistributedTables(tables: Array): Promise } /** -- Gitee