本文介绍了MongoDB中是否有原生REST接口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在评估蒙戈和CouchDB中存储的数据点(分析)。

I am currently evaluating Mongo and CouchDB for storing data points (analytics).

在我早期使用CouchDB的互动,我喜欢它的基于JSONP接口。我可以从纯粹的JavaScript执行所有CRUD操作。
只要运行CouchDB的,写一些JavaScript - 没有服务器端组件需要

During my earlier interaction with CouchDB, I loved its JSONP based interface. I could perform all CRUD operations from purely JavaScript.Just run CouchDB and write some JavaScript - no server side component needed.

在比较这蒙戈,有没有REST接口可用?
是否有可能在蒙戈从JavaScript做CRUD纯粹?

When comparing this to Mongo, is there any REST interface available?Is it possible to do CRUD purely from javascript in Mongo?

谢谢!

推荐答案

有没有成熟的REST接口MongoDB的,主要是因为服务器使用效率的原生二进制协议。您可以在官方几个REST包装:

There is no full-blown REST interface to MongoDB, mainly because the server uses native binary protocol for efficiency. You can find few REST wrappers in official documentation:


      
  • (Java的8)是MongoDB的生态系统的数据REST API服务器的一部分。 RESTHeart使用基于HAL通过BSON的严格模式重新presentation全面的本地MongoDB的数据支持标准的重新presentation格式。
      它提供API CRUD和数据模型操作,内置的身份验证和授权,并支持CORS。
      这是很容易设置和码头工人,容器是可用的。 RESTHeart也快,重量轻(〜7 MB的足迹〜200 MB RAM偷看使用)。

(蟒蛇)是MongoDB的一个全功能的REST接口是可以作为一个单独的项目。

Sleepy Mongoose (Python) is a full featured REST interface for MongoDB which is available as a separate project.

(Node.js的)是一个阿尔法 REST接口的MongoDB,它使用MongoDB的节点本地驱动程序。

MongoDB Rest (Node.js) is an alpha REST interface to MongoDB, which uses the MongoDB Node Native driver.

中的mongod的过程包括方便简单的只读REST接口。为了充分休息的能力,我们建议您使用外部工具如的。

Simple REST Interface The mongod process includes a simple read-only REST interface for convenience. For full REST capabilities we recommend using an external tool such as Sleepy.Mongoose.

这篇关于MongoDB中是否有原生REST接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 04:33