Migrating to ForestDB from SQLite in CBL for iOS

23 views
Skip to first unread message

Brendan Duddridge

unread,
Jul 15, 2015, 4:37:16 PM7/15/15
to mobile-c...@googlegroups.com
I haven't selected ForestDB as my store type because I need encryption. So when ForestDB gets encryption I would like to migrate to it.

Will there be a simple way to migrate to ForestDB from an SQLite store?

Or will I need to write code that fetches all documents from the existing store and writes them out to a new ForestDB file manually? I would think that would be a fairly generic process that could work for any application. But it would be nice if there was some built-in way to do it on the CBLManager class or CBLDatabase class.

Also, in ForestDB, are attachments treated the same way as they are in SQLite? That is, as blobs in a separate attachments folder?

Thanks,

Brendan

Jens Alfke

unread,
Jul 15, 2015, 4:46:29 PM7/15/15
to mobile-c...@googlegroups.com
On Jul 15, 2015, at 1:37 PM, Brendan Duddridge <bren...@gmail.com> wrote:

Will there be a simple way to migrate to ForestDB from an SQLite store?

Yes. (The code to do this is already in place, there’s just not a way to trigger it through the API.)

Also, in ForestDB, are attachments treated the same way as they are in SQLite? That is, as blobs in a separate attachments folder?

Yes.

—Jens

Reply all
Reply to author
Forward
0 new messages