1.1 GM db directory structure vs. master

7 views
Skip to first unread message

Brendan Duddridge

unread,
Jun 26, 2015, 11:52:01 PM6/26/15
to mobile-c...@googlegroups.com
Hi,

In the recent master builds of CBL for iOS, the directory structure seems different than in the 1.1 GM version. In master, the database is stored in a db.sqlite file within a folder of the name of the database. In version 1.1, the database is stored directly in a .cblite file. 

I'm just wondering if I should stick with the master source version of CBL or use the 1.1 GM version. I'm guessing that you're moving towards the db.sqlite structure rather than the .cblite structure? I'm still quite a ways away from shipping anything with CBL, so I can do whatever would be considered the better way to go. I was just trying to simplify things by using CocoaPods to install CBL.


Thanks,

Brendan

Jens Alfke

unread,
Jun 27, 2015, 2:11:30 PM6/27/15
to mobile-c...@googlegroups.com
The format did change in 1.1 but not since, so master should be the same as 1.1.

The new 1.1 format has a directory named after the database, with a db.sqlite file inside. The old 1.0.x format had all the db files in the same directory.

All databases should be upgraded to the new format the first time 1.1 runs.

I don't have any good theory about why that's not what you're seeing. Could you double-check that you didn't get it mixed up?

—Jens 
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/fee345bd-74f5-448e-abd9-8df0961c616e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brendan Duddridge

unread,
Jun 27, 2015, 4:52:34 PM6/27/15
to mobile-c...@googlegroups.com
Ok, great. If that's the case then I obviously messed up somewhere or perhaps got the old version from Cocoapods unknowingly. I didn't specify the version in my Podfile since I assumed it would load the latest. I'll fix that.
Reply all
Reply to author
Forward
0 new messages