@@ -1038,7 +1038,7 @@ Updates data in the database based on the specified RdbPredicates object. This A
...
@@ -1038,7 +1038,7 @@ Updates data in the database based on the specified RdbPredicates object. This A
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| values | [ValuesBucket](#valuesbucket) | Yes| Data to update. The value specifies the row of data to be updated in the database. The key-value pair is associated with the column name in the target table.|
| values | [ValuesBucket](#valuesbucket) | Yes| Data to update. The value specifies the row of data to be updated in the database. The key-value pair is associated with the column name in the target table.|
| rdbPredicates | [RdbPredicates](#rdbpredicates) | Yes| Row of data to insert.|
| rdbPredicates | [RdbPredicates](#rdbpredicates) | Yes| Row of data to insert.|
| callback | AsyncCallback<number> | Yes| Callback used to return the number of rows updated.|
| callback | AsyncCallback<number> | Yes| Callback invoked to return the number of rows updated.|
**Example**
**Example**
```js
```js
...
@@ -1682,7 +1682,7 @@ Defines the data types allowed.
...
@@ -1682,7 +1682,7 @@ Defines the data types allowed.
Lightweight storage provides applications with data processing capability and allows applications to perform lightweight data storage and query. Data is stored in key-value (KV) pairs. Keys are of the string type, and values can be of the number, string, or Boolean type.
Lightweight storage provides applications with data processing capability and allows applications to perform lightweight data storage and query. Data is stored in key-value (KV) pairs. Keys are of the string type, and values can be of the number, string, or Boolean type.
> **NOTE**
> **NOTE**<br/>
>
>
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
>
>
## Modules to Import
## Modules to Import
...
@@ -35,14 +35,14 @@ Reads the specified file and loads its data to the **Storage** instance for data
...
@@ -35,14 +35,14 @@ Reads the specified file and loads its data to the **Storage** instance for data
| key | string | Yes| Key of the data. It cannot be empty.|
| key | string | Yes| Key of the data. It cannot be empty.|
| defValue | [ValueType](#valuetype) | Yes| Default value to be returned if the value of the specified key does not exist. It can be a number, string, or Boolean value.|
| defValue | [ValueType](#valuetype) | Yes| Default value to be returned if the value of the specified key does not exist. It can be a number, string, or Boolean value.|
**Return value**
**Return value**
| Type| Description|
| Type| Description|
| -------- | -------- |
| -------- | -------- |
| ValueType | Value corresponding to the specified key. If the value is null or not in the default value format, the default value is returned.|
| ValueType | Value corresponding to the specified key. If the value is null or not in the default value format, the default value is returned.|
**Example**
**Example**
```js
```js
...
@@ -314,11 +314,11 @@ Obtains the value corresponding to a key. If the value is null or not in the def
...
@@ -314,11 +314,11 @@ Obtains the value corresponding to a key. If the value is null or not in the def