June 6, 2016, 4:20pm
Are there plans to add a config for ForestDB to Couchbase-Lite-PhoneGap-Plugin?
Does Couchbase Lite support migrations from SQLite to ForestDB or is it going to support migrations/conversions in the future?
http://blog.couchbase.com/2016/february/mobile-1.2-enable-forestdb mentions that if you have a previous project using an earlier version of Couchbase Lite then the existing database files are not converted.
But comments in
https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin/blob/ed9b1c9bbbe1aae3b822a66ba206a5a1c0ba0ba8/lib/ios/CouchbaseLite.framework/Headers/CBLManager.h also say that SQLite-to-ForestDB upgrades are supported.
June 6, 2016, 5:20pm
Yes, you can migrate from SQLite to ForestDB using an explicit API call (Manager.openDatabase, setting the storage type to ForestDB in the DatabaseOptions parameter.)
I can’t comment on the PhoneGap plugin since I don’t work on that; but I agree that we should add support for ForestDB to it. Have you filed an issue on Github?
June 6, 2016, 5:52pm
I haven’t created a Github issue yet, I will do that.
I am not yet using Couchbase Lite in production, but am going to use it with Cordova. I would rather not start modifying the Couchbase-Lite-PhoneGap-Plugin now, but since migrations are supported, it seems I don’t have to worry about switching over to ForestDB later on.
June 7, 2016, 10:52am
(apparently I can only post 2 links per thread since I am a new user, so here is a broken link)