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