@@ -35,7 +35,6 @@ The following table lists the APIs used for KV data persistence. Most of the API
...
@@ -35,7 +35,6 @@ The following table lists the APIs used for KV data persistence. Most of the API
1. Create a **KvManager** instance to manage database objects.
1. Create a **KvManager** instance to manage database objects.
Example:
Example:
Stage model:
Stage model:
...
@@ -95,12 +94,11 @@ The following table lists the APIs used for KV data persistence. Most of the API
...
@@ -95,12 +94,11 @@ The following table lists the APIs used for KV data persistence. Most of the API
2. Create and obtain a KV store.
2. Create and obtain a KV store.
Example:
Example:
```js
```js
try{
try{
constoptions={
constoptions={
createIfMissing:true,// Whether to create a KV store when the database file does not exist. By default, a KV store is created.
createIfMissing:true,// Whether to create a KV store when the database file does not exist. By default, a KV store is created.
createIfMissing:true,// Whether to encrypt database files. By default, database files are not encrypted.
encrypt:false,// Whether to encrypt the KV store. By default, KV stores are not encrypted.
backup:false,// Whether to back up database files. By default, the database files are backed up.
backup:false,// Whether to back up database files. By default, the database files are backed up.
autoSync:true,// Whether to automatically synchronize database files. The value **true** means to automatically synchronize database files; the value **false** (default) means the opposite.
autoSync:true,// Whether to automatically synchronize database files. The value **true** means to automatically synchronize database files; the value **false** (default) means the opposite.
kvStoreType:distributedKVStore.KVStoreType.SINGLE_VERSION,// Type of the KV store to create. By default, a device KV store is created.
kvStoreType:distributedKVStore.KVStoreType.SINGLE_VERSION,// Type of the KV store to create. By default, a device KV store is created.
...
@@ -123,7 +121,6 @@ The following table lists the APIs used for KV data persistence. Most of the API
...
@@ -123,7 +121,6 @@ The following table lists the APIs used for KV data persistence. Most of the API