From bb610250e2fbfaeb59311e9328f24854fddcdb11 Mon Sep 17 00:00:00 2001 From: sun-dou Date: Mon, 7 Feb 2022 19:57:34 +0800 Subject: [PATCH 1/3] Change to synchronous interface Signed-off-by: sun-dou --- api/@ohos.data.rdb.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index dfbcea11da..6a6481bc37 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -170,6 +170,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ + beginTransactionSync():void; beginTransaction(callback: AsyncCallback):void; beginTransaction(): Promise; @@ -181,6 +182,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ + commitSync():void; commit(callback: AsyncCallback):void; commit(): Promise; @@ -192,6 +194,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ + rollBackSync():void; rollBack(callback: AsyncCallback):void; rollBack(): Promise; -- Gitee From bf2828ddf628a70aaca4772588734389d8b1ebd8 Mon Sep 17 00:00:00 2001 From: sun-dou Date: Mon, 14 Feb 2022 17:53:10 +0800 Subject: [PATCH 2/3] Change to synchronous interface Signed-off-by: sun-dou --- api/@ohos.data.rdb.d.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 6a6481bc37..f6ac8a35fe 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -171,8 +171,6 @@ declare namespace rdb { * @devices phone, tablet, tv, wearable, car */ beginTransactionSync():void; - beginTransaction(callback: AsyncCallback):void; - beginTransaction(): Promise; /** * commit the the sql you have excuted. @@ -183,8 +181,6 @@ declare namespace rdb { * @devices phone, tablet, tv, wearable, car */ commitSync():void; - commit(callback: AsyncCallback):void; - commit(): Promise; /** * roll back the sql you have already excuted @@ -195,8 +191,6 @@ declare namespace rdb { * @devices phone, tablet, tv, wearable, car */ rollBackSync():void; - rollBack(callback: AsyncCallback):void; - rollBack(): Promise; /** * Set table to be distributed table. -- Gitee From 87d9d17150e2cf68bae76f2683c5a89272043dfb Mon Sep 17 00:00:00 2001 From: sun-dou Date: Tue, 15 Feb 2022 17:24:25 +0800 Subject: [PATCH 3/3] Change to synchronous interface Signed-off-by: sun-dou --- api/@ohos.data.rdb.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index f6ac8a35fe..7fcbb972a8 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -170,7 +170,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ - beginTransactionSync():void; + beginTransaction():void; /** * commit the the sql you have excuted. @@ -180,7 +180,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ - commitSync():void; + commit():void; /** * roll back the sql you have already excuted @@ -190,7 +190,7 @@ declare namespace rdb { * @sysCap SystemCapability.Data.DATA_APPDATAMGR * @devices phone, tablet, tv, wearable, car */ - rollBackSync():void; + rollBack():void; /** * Set table to be distributed table. -- Gitee