DocumentDB的Grails插件 [英] Grails plugin for DocumentDB

查看:120
本文介绍了DocumentDB的Grails插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Grails,它支持MongoDb作为后端(使用GORM),但对于后端找不到类似的DocumentDd支持。



如果我们选择使用DocumentDb,我们的选择将是一个图层(可能是DAO图层),它使用documentDb客户端库并与DocumentDb交互。或者我们回到MongoDb,就像它提供的Azure一样。



Grails-DocumentDb的其他选择?

解决方案

您应该能够使用DocumentDB的驱动程序级别MongoDB兼容性。

将Grails / GORM配置为与MongoDB交谈。保留客户端MongoDB驱动程序,但更改连接字符串以连接到DocumentDB。请参阅此处


We are kind of POC phase where we are trying out Azure.

We are using Grails, which has nice support for MongoDb as backend (using GORM), but couldn't find similar support for DocumentDd.

If we choose to go with DocumentDb, our choice would be to have a layer (may be kind of DAO layer) which uses documentDb client library and interacts with DocumentDb. Or we fall back to MongoDb, as its provided Azure.

Any other choices we have with Grails-DocumentDb?

解决方案

You should be able to use DocumentDB's driver level MongoDB compatibility.

Configure Grails/GORM as if it were talking to MongoDB. Leave the client-side MongoDB drivers in place, but change the connection string to connect to your DocumentDB. See instructions here.

这篇关于DocumentDB的Grails插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆