DocumentDB的Grails插件 [英] Grails plugin for DocumentDB
问题描述
如果我们选择使用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屋!