将Excel数据保存到couchDB

发布于 2024-10-04 03:44:43 字数 168 浏览 11 评论 0 原文

我想知道是否有一个工具可以将我的 MS Excel(或 OO calc)数据保存/推送到 CouchDB 数据库。谷歌搜索没有多大帮助,所以我认为没有现有的解决方案。

Excel-> json-> Curl to CouchDB 可以解决这个问题,但我仍然希望有一些东西可以节省我编程的时间。

I'm wondering if there is a tool that will save/push my MS Excel (or OO calc) data to CouchDB database. Googling didn't help a lot so I don't think there is an existing solution for this.

Excel -> json -> Curl to CouchDB would do the trick but I'm still hoping there is something out there that will save my time on programming this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伏妖词 2024-10-11 03:44:43

如果您按照 Sam Bisbee 的建议将 Excel 数据放入 JSON 文件中,则应该能够使用 tools/load.py 脚本/p/couchdb-python/" rel="nofollow">couchdb-python 轻松快速地将其转储到 CouchDB 中,而无需花费太多时间编写自己的。 (虽然我不认为自己写那么长时间......)

查看 这篇关于将 JSON 加载到 CouchDB 中/从 CouchDB 中转储出来的博文。该实现使用Python。

加载 JSON 文件应该像下面一样简单:

./load.py –input=msg_db.json http://target-couchdb:5984/msg_db

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:

./load.py –input=msg_db.json http://target-couchdb:5984/msg_db
孤独难免 2024-10-11 03:44:43

如果您想要提取数据本身,那么您已经回答了自己的问题“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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文