delta-pouch:PouchDB的无冲突协作编辑

时间:2021-05-11 18:49:03
【文件属性】:
文件名称:delta-pouch:PouchDB的无冲突协作编辑
文件大小:135KB
文件格式:ZIP
更新时间:2021-05-11 18:49:03
JavaScript 三角袋 一个PouchDB插件,用于部分更新,它使用“每个文档都是一个增量”存储模式。 您可以使用delta pouch启用相同文档的无冲突协作编辑。 例子 var db = new PouchDB ( 'pages' ) ; // Create a new page db . save ( { url : 'google.com' , views : 0 } ) . then ( function ( doc ) { // Update only the views attribute db . save ( { $id : doc . $id , // Set the id views : 1 } ) ; } ) ; 注意:如果您尝试使用db.put()内置的db.put()类似操作,则url属性将被清空。 现场演示:个人资料 现场演示:网站 用法 要使用此
【文件预览】:
delta-pouch-master
----.jshintrc(493B)
----.circleci()
--------config.yml(620B)
----.npmignore(63B)
----examples()
--------profile()
--------page()
--------websites()
----CONTRIBUTING.md(1KB)
----test()
--------index.js(13KB)
----README.md(3KB)
----cache()
--------.gitignore(14B)
----beautify.json(102B)
----dist()
--------pouchdb.delta-pouch.js(196KB)
--------pouchdb.delta-pouch.min.js(84KB)
----.gitignore(97B)
----index.js(6KB)
----package-lock.json(222KB)
----package.json(3KB)

网友评论