未验证 提交 658299c5 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/database/data-sync-of-kv-store.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 570b1418
...@@ -160,8 +160,9 @@ ...@@ -160,8 +160,9 @@
encrypt: false, encrypt: false,
backup: false, backup: false,
autoSync: false, autoSync: false,
// kvStoreType不填时,默认创建多设备协同数据库
kvStoreType: distributedKVStore.KVStoreType.SINGLE_VERSION, kvStoreType: distributedKVStore.KVStoreType.SINGLE_VERSION,
// 设备协同数据库:kvStoreType: distributedKVStore.KVStoreType.DEVICE_COLLABORATION, // 设备协同数据库:kvStoreType: distributedKVStore.KVStoreType.DEVICE_COLLABORATION,
securityLevel: distributedKVStore.SecurityLevel.S1 securityLevel: distributedKVStore.SecurityLevel.S1
}; };
kvManager.getKVStore('storeId', options, (err, kvStore) => { kvManager.getKVStore('storeId', options, (err, kvStore) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册