中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
键值型数据库如何将备份的数据进行恢复?
微信扫码分享
let kvStore: distributedKVStore.SingleKVStore | undefined = undefined;//kvStore获取步骤省略 let backupFile = 'BK001'; try { kvStore.restore(backupFile, (err) => { if (err) { console.error(`Fail to restore data. Code:${err.code},message:${err.message}`); } else { console.info('Succeeded in restoring data.'); } }); } catch (e) { let error = e as BusinessError; console.error(`An unexpected error occurred. Code:${error.code},message:${error.message}`); }