简体   繁体   English

从DerbyJS访问ShareJS元数据

[英]Access ShareJS metadata from DerbyJS

DerbyJS uses ShareJS for its data synchronization. DerbyJS使用ShareJS进行数据同步。 ShareJS stores various metadata values, as you can see here: ShareJS存储各种元数据值,如下所示:

{ "id" : "ABCDEFG12345", "_type" : "http://sharejs.org/types/JSONv0", "_v" : 3, "_m" : { "mtime" : 1403674645713, "ctime" : 1403674645618 }, "_id" : "ABCDEFG12345" }

The _type , _v and _m fields are automatically generated by ShareJS. _type_v_m字段由ShareJS自动生成。

I know there is a similar question over at Is it possible to access m.mtime or m.ctime from share.js in derby.js? 我知道在derby.js中可以从share.js访问m.mtime或m.ctime吗? , but the only provided solution is that it is possible to use these fields for querying. ,但唯一提供的解决方案是可以使用这些字段进行查询。

Is there any way to access these properties from the fetched object using Derby ? 有没有办法使用Derby从获取的对象访问这些属性?

No. These fields are striped in ShareJS db adapter level. 否。这些字段在ShareJS db适配器级别中按条划分。

source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM