From e0b3d80b3d10f827cc6d5d37c802033a97e4b934 Mon Sep 17 00:00:00 2001 From: annie_wangli Date: Mon, 7 Mar 2022 17:03:26 +0800 Subject: [PATCH] update docs Signed-off-by: annie_wangli --- .../reference/apis/js-apis-distributed-data.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-distributed-data.md b/en/application-dev/reference/apis/js-apis-distributed-data.md index ed190a2e4e5..eb9d6b4f593 100644 --- a/en/application-dev/reference/apis/js-apis-distributed-data.md +++ b/en/application-dev/reference/apis/js-apis-distributed-data.md @@ -591,7 +591,7 @@ Defines the KV store constants. ## Schema8+ ## -Defines a database schema. When creating or opening a KV store, you can create **Schema** objects and put them into **Options**. +Defines a database schema. When creating or opening a KV store, you can create a **Schema** object and put it into **Options**. ### toJsonString8+ ### @@ -1096,13 +1096,13 @@ Checks whether the data read position is after the last row. getEntry(): Entry; -Obtains KV pairs. +Obtains a KV pair. - Return value | Type| Description| | ------ | ------- | -| Entry |KV pairs obtained.| +| Entry |KV pair obtained.| - Example @@ -2387,7 +2387,7 @@ Deletes KV pairs in batches from this KV store. This method uses a promise to re startTransaction(callback: AsyncCallback<void>): void; -Starts transactions in this KV store. This method uses an asynchronous callback to return the result. +Starts the transaction in this KV store. This method uses an asynchronous callback to return the result. - Parameters @@ -2437,7 +2437,7 @@ Starts transactions in this KV store. This method uses an asynchronous callback startTransaction(): Promise<void>; -Starts transactions in this KV store. This method uses a promise to return the result. +Starts the transaction in this KV store. This method uses a promise to return the result. - Return value @@ -2470,7 +2470,7 @@ Starts transactions in this KV store. This method uses a promise to return the r commit(callback: AsyncCallback<void>): void; -Commits transactions in this KV store. This method uses an asynchronous callback to return the result. +Commits the transaction in this KV store. This method uses an asynchronous callback to return the result. - Parameters @@ -2500,7 +2500,7 @@ Commits transactions in this KV store. This method uses an asynchronous callback commit(): Promise<void>; -Commits transactions in this KV store. This method uses a promise to return the result. +Commits the transaction in this KV store. This method uses a promise to return the result. - Return value @@ -2528,7 +2528,7 @@ Commits transactions in this KV store. This method uses a promise to return the rollback(callback: AsyncCallback<void>): void; -Rolls back transactions in this KV store. This method uses an asynchronous callback to return the result. +Rolls back the transaction in this KV store. This method uses an asynchronous callback to return the result. - Parameters @@ -2558,7 +2558,7 @@ Rolls back transactions in this KV store. This method uses an asynchronous callb rollback(): Promise<void>; -Rolls back transactions in this KV store. This method uses a promise to return the result. +Rolls back the transaction in this KV store. This method uses a promise to return the result. - Return value -- Gitee