未验证 提交 c20846ed 编写于 作者: O openharmony_ci 提交者: Gitee

!22393 [翻译完成】#I7NDRE

Merge pull request !22393 from Annie_wang/PR20923
...@@ -50,7 +50,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP ...@@ -50,7 +50,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP
## How to Develop ## How to Develop
1. Obtain an **RdbStore** instance.<br> Example: 1. Obtain an **RdbStore** instance.<br>Example:
Stage model: Stage model:
...@@ -97,7 +97,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP ...@@ -97,7 +97,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP
store.version = 3; store.version = 3;
} }
// Perform operations such as adding, deleting, modifying, and querying data in the RDB store. // Before performing data operations on the database, obtain an RdbStore instance.
}); });
} }
...@@ -151,7 +151,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP ...@@ -151,7 +151,7 @@ The following table lists the APIs used for RDB data persistence. Most of the AP
store.version = 3; store.version = 3;
} }
// Perform operations such as adding, deleting, modifying, and querying data in the RDB store. // Before performing data operations on the database, obtain an RdbStore instance.
}); });
``` ```
...@@ -258,6 +258,8 @@ The following table lists the APIs used for RDB data persistence. Most of the AP ...@@ -258,6 +258,8 @@ The following table lists the APIs used for RDB data persistence. Most of the AP
Use **deleteRdbStore()** to delete the RDB store and related database files. Use **deleteRdbStore()** to delete the RDB store and related database files.
Example:
> **NOTE** > **NOTE**
> >
> After the deletion, you are advised to set the database object to null. > After the deletion, you are advised to set the database object to null.
......
...@@ -118,7 +118,7 @@ Data is added, deleted, and modified continuously without closing the read trans ...@@ -118,7 +118,7 @@ Data is added, deleted, and modified continuously without closing the read trans
1. Check for unclosed result sets or transactions. 1. Check for unclosed result sets or transactions.
2. Closes all result sets or transactions. 2. Close all result sets or transactions.
## 14800050 Failed to Obtain the Subscription Service ## 14800050 Failed to Obtain the Subscription Service
...@@ -142,7 +142,7 @@ Deploy the subscription service on the platform. ...@@ -142,7 +142,7 @@ Deploy the subscription service on the platform.
**Error Message** **Error Message**
Only supported in stage mode. Only supported in stage mode.
**Description** **Description**
...@@ -173,3 +173,21 @@ The **dataGroupId** is not obtained from the AppGallery. ...@@ -173,3 +173,21 @@ The **dataGroupId** is not obtained from the AppGallery.
**Solution** **Solution**
Obtain **dataGroupId** from the AppGallery and pass it to **storeConfig** correctly. Obtain **dataGroupId** from the AppGallery and pass it to **storeConfig** correctly.
## 14800051 Inconsistent Distributed Table Type
**Error Message**
The type of the distributed table does not match.
**Description**
Different distributed table types are set for the same database table.
**Possible Causes**
The database table is set with different [distributed table types](../apis/js-apis-data-relationalStore.md#distributedtype10).
**Solution**
A database table can be synchronized either between devices or between device and cloud.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册