<p>Please take a look on <a href="https://github.com/gocontrib/nosql">this package</a> and share your thoughts. I wrote it in spare time trying golang. Maybe such abstraction layer is not needed at all. And maybe the package will be useful in future.</p>
<hr/>**评论:**<br/><br/>9eb5: <pre><p>Might help, if you add a few examples to the readme. Right now its not clear what you are trying to achieve. Unified interface for boltdb, mongo and postgresql? How will that work?</p></pre>todysh: <pre><p>Agree need better docs. Added API topic to readme for now.</p></pre>iio7: <pre><p>No need for yet another layer of abstraction.</p></pre>todysh: <pre><p>In fact golang "database/sql" package is also unified interface to SQL data sources. There is no such interface for NoSQL data sources. Such layer is useful to easily change NoSQL database and for testing purposes. Also consider implementation that decorate data store with event sourcing / auditing functions.</p></pre>todysh: <pre><p>IOW "no need" is not absolute, but it depends on the concrete task.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传