简体   繁体   English

寻找延迟加载服务器/客户端ActiveRecord ORM for Node.js

[英]Looking for lazy loading server/client ActiveRecord ORM for Node.js

I'm new to node.js and I'm looking for an Active-Record-style ORM (to whichever database - any would be great). 我是node.js的新手,我正在寻找一个Active-Record风格的ORM(无论哪个数据库 - 任何一个都很棒)。 But in particular, I'm hoping to find one with these qualities: 但特别是,我希望找到具有这些品质的产品:

  • Same interface on both client and server. 客户端和服务器上的相同接口。
  • If information is already on the client, then that information is used unless it is deemed "stale". 如果信息已经在客户端上,则使用该信息,除非它被视为“陈旧”。
  • If information is not already on the client, then it's retrieved from the server - though there should be bundling of requests so that you're not issuing a ton of http requests. 如果信息是不是已经在客户端上,那么它从服务器检索-虽然应该有捆绑的请求,因此,你不发出一吨的HTTP请求。
  • Simple (enough). 简单(足够)。

Is it out there? 它在那里吗?

there is a great framework for Node called meteor: Node有一个很棒的框架叫meteor:

meteor 流星

it seems to do what you wish and even more. 它似乎做你想做的甚至更多。

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

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