将Excel数据保存到couchDB
我想知道是否有一个工具可以将我的 MS Excel(或 OO calc)数据保存/推送到 CouchDB 数据库。谷歌搜索没有多大帮助,所以我认为没有现有的解决方案。
Excel-> json-> Curl to CouchDB 可以解决这个问题,但我仍然希望有一些东西可以节省我编程的时间。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您按照 Sam Bisbee 的建议将 Excel 数据放入 JSON 文件中,则应该能够使用 tools/load.py 脚本/p/couchdb-python/" rel="nofollow">couchdb-python 轻松快速地将其转储到 CouchDB 中,而无需花费太多时间编写自己的。 (虽然我不认为自己写那么长时间......)
查看 这篇关于将 JSON 加载到 CouchDB 中/从 CouchDB 中转储出来的博文。该实现使用Python。
加载 JSON 文件应该像下面一样简单:
If you get the Excel data into a JSON file as Sam Bisbee suggests, you should be able to use the
tools/load.py
script from couchdb-python to easily and quickly dump it into CouchDB without spending too much time writing your own. (Although I wouldn't think it would take that long to write your own...)Check out this blog post about loading/dumping JSON into/out of CouchDB. The implementation uses Python.
Loading the JSON file should be as easy as:
如果您想要提取数据本身,那么您已经回答了自己的问题“Excel -> json -> Curl to CouchDB”。快速 Google 一下“Excel 到 JSON 转换器”将为该旅程的第一部分找到一些答案。
另外,如果您不需要让 CouchDB 访问电子表格中的数据,那么我建议将 Excel 文档保存为附件。有关详细信息,请访问:http://wiki.apache.org/couchdb/HTTP_Document_API#Attachments
If you're looking to pull the data itself out, then you've answered your own question, "Excel -> json -> Curl to CouchDB". A quick Google for "Excel to JSON converter" will pull up some answers for the first part of that journey.
Also, if you don't need to have CouchDB access the data in your spread sheet, then I'd suggest saving the Excel documents as attachments. More info on that here: http://wiki.apache.org/couchdb/HTTP_Document_API#Attachments