是否有可能CouchDB的直接复制到SD卡上的Andr​​oid设备? [英] Is it possible to copy couchdb directly to sdcard on android devices?

查看:155
本文介绍了是否有可能CouchDB的直接复制到SD卡上的Andr​​oid设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到couchdbs存储在 /sdcard/Android/data/my.app.package/db / .couch 文件。我试图复制的CouchDB 直接 SD卡,使CouchDB的服务识别。我们在存储在CouchDB中,并在测试期间每次复制需要花费大量的时间和能够直接复制它会加速发展过程中的一个云计算大量数据。是否有可能做到这一点?如果是,如何以及有没有让Android的couchbase服务识别couchdbs所需的任何特殊照顾复制?

I see that the couchdbs are stored in the /sdcard/Android/data/my.app.package/db/ as .couch files. I was trying to copy the couchdb directly to sdcard and make the couchdb service recognize it. We have a large amount of data in the cloud stored in couchdb and replicating it everytime during testing takes a lot of time and being able to copy it directly will hasten the development process. Is it possible to do this? if yes, how and is there any special care needed to make the android couchbase service recognize the couchdbs copied?

感谢。

推荐答案

有可能共享一个公共的数据库格式的CouchDB实例之间复制文件.couch。如果你有两个1.1.0 CouchDB的,那么你可以 CP (或类似)的.couch文件到另一个1.1.0的CouchDB的运行实例,它应该只是工作。的有时的,可以成功复制.couch文件涨声一片的版本(例如:1.1.0至1.2.0),但你的里程可能会有所不同。

It is possible to copy .couch files between instances of CouchDB that share a common database format. If you've got two 1.1.0 CouchDB's, then you can cp (or similar) the .couch file into a running instance of another 1.1.0 CouchDB and it should "just work." Sometimes, you can successfully copy a .couch file "up" a version (ex: 1.1.0 to 1.2.0), but your mileage may vary.

我不知道什么CouchDB的版本的最后一个活动的CouchDB的Andr​​oid使用,但理论上它的工作是相同的 - 一旦你知道什么版本它是基于

I'm not sure what version of CouchDB the last active CouchDB for Android uses, but theoretically it would work the same--once you know what version it's based on.

TouchDB,从Couchbase新的CouchDB复制兼容的数据库做的不可以使用相同的.couch格式,也没有Couchbase Server 2.0中。从复制CouchDB的任何一个版本的文件.couch到这些之一,将不可以工作作为数据库格式显著的不同(特别是其中TouchDB使用SQLite下)。

TouchDB, the new CouchDB replication compatible database from Couchbase does not use the same .couch format, nor does Couchbase Server 2.0. Copying a .couch file from any version of CouchDB into one of those will not work as the database formats are significantly different (especially for TouchDB which uses SQLite underneath).

CouchDB的对CouchDB的,不过,通常只要罚款,你留意的版本号。

CouchDB-to-CouchDB, though, is typically fine as long as you keep an eye on the version numbers.

这篇关于是否有可能CouchDB的直接复制到SD卡上的Andr​​oid设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆