Grails plugin for DocumentDB

偶尔善良 提交于 2020-01-26 00:45:28

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/37717809/grails-plugin-for-documentdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!