Port a TouchDB server to CBL

107 views
Skip to first unread message

Paul K. Gedeon

unread,
Oct 2, 2013, 3:11:00 PM10/2/13
to mobile-c...@googlegroups.com
Hello,

Is there an easy way to re-use an existing TouchDB server on a device and its databases with Couchbase Lite? In other words, can my CBL Manager target the existing TouchDB server?

Thank you,
Paul

Jens Alfke

unread,
Oct 2, 2013, 6:01:02 PM10/2/13
to mobile-c...@googlegroups.com

On Oct 2, 2013, at 12:11 PM, Paul K. Gedeon <paul....@gmail.com> wrote:

Is there an easy way to re-use an existing TouchDB server on a device and its databases with Couchbase Lite? In other words, can my CBL Manager target the existing TouchDB server?

There’s no server, but the database files (in a subdirectory of Application Support, by default) are compatible. The one thing you have to do manually (IIRC) is rename that subdirectory from “TouchDB” to “CouchbaseLite”.

In other words, yes, you can upgrade a TouchDB-based app to use Couchbase Lite.

—Jens

Paul K. Gedeon

unread,
Oct 3, 2013, 10:03:32 AM10/3/13
to mobile-c...@googlegroups.com
Alright, I'll try this out when we'll try to port to CBL. Thank you for the quick feedback.

David Quon

unread,
Nov 14, 2013, 7:25:20 PM11/14/13
to mobile-c...@googlegroups.com
I'm trying to wrap my head around migrating our app from TouchDB (with existing content) to Couchbase Lite.  In a nutshell do I just need to follow the code change instructions here https://github.com/couchbase/couchbase-lite-ios/wiki/Upgrading-From-CouchCocoa and rename the database subdirectory from “TouchDB” to “CouchbaseLite”?  Then Couchbase Lite should just pick up from where TouchDB left off?  Are there any other steps I need to take or links describing the steps needed to move forward to Couchbase Lite without breaking the application?  Thanks for the help.

Jens Alfke

unread,
Nov 14, 2013, 8:07:55 PM11/14/13
to mobile-c...@googlegroups.com

On Nov 14, 2013, at 4:25 PM, David Quon <dav...@amcoonline.net> wrote:

I'm trying to wrap my head around migrating our app from TouchDB (with existing content) to Couchbase Lite.  In a nutshell do I just need to follow the code change instructions here https://github.com/couchbase/couchbase-lite-ios/wiki/Upgrading-From-CouchCocoa and rename the database subdirectory from “TouchDB” to “CouchbaseLite”?  Then Couchbase Lite should just pick up from where TouchDB left off? 

Yes. The database files will be renamed from “.touchdb” to “.cblite” the first time they’re opened; just pointing this out because it means you can’t go back.

—Jens

David Quon

unread,
Nov 14, 2013, 8:26:37 PM11/14/13
to mobile-c...@googlegroups.com
Nice.  Thanks for the feedback and support.

David Quon

unread,
Dec 2, 2013, 1:22:03 PM12/2/13
to mobile-c...@googlegroups.com
Successfully ported TouchDB to CBL using the instructions above and everything works as expected.  The CBL interface seems much more intuitive than the TouchDB.  Looking forward to using some of the new features in CBL.  Thanks Jens for the helpful feedback and support.

Jens Alfke

unread,
Dec 2, 2013, 4:36:59 PM12/2/13
to mobile-c...@googlegroups.com

On Dec 2, 2013, at 10:22 AM, David Quon <dav...@amcoonline.net> wrote:

Successfully ported TouchDB to CBL using the instructions above and everything works as expected.  The CBL interface seems much more intuitive than the TouchDB.  Looking forward to using some of the new features in CBL.  Thanks Jens for the helpful feedback and support.

Great! Good to know the directions work.

(We’ve got some further API changes coming up in beta 2, but not nearly as many.)

—Jens

Reply all
Reply to author
Forward
0 new messages