Sorry it took me so long to get back. Between jury duty and getting heads down in code, the time slipped by. I abandoned the Core Data/CBL integration and have been converting the app to a pure CBL version. It seems to be coming along fine. Not having to convert/store between the documents and the Core Data rows eliminates a lot of code and solves most of my offline strategy problems.
On Tuesday, February 11, 2014 6:47:16 AM UTC-8, Christian Beer wrote: > > The CBLIncrementalStore depends on some fields in the CBL data for mapping > between the CBL data and the Core Data entities. If you're working with an > existing CBL database those fields may be missing (especially CBLIS_type). > But if I understand your post correctly, you're trying to import an > existing SQLite database. > > Did the createManagedObjectContext:...importinDatabaseAtURL:... method > return a context? Did you try to execute some NSFetchRequests on it, to see > if there is some data? > > I am the guy who wrote the CBLIncrementalStore and I'm glad there's at > least somebody who uses it (or tries to). So I hope I can help. > > Cheers, > Christian > > > On Monday, February 10, 2014 8:23:18 PM UTC+1, Alan McKean wrote: >> >> Thanks. I did as you suggested and incorporated the CBLIncrementalStore. >> Created a managed object context with >> ccreateManagedObjectContext:withModel:databaseName:importingDatabaseAtURL:importType:error:. >> >> added an observer with addObservingManageObjectCOntext:, etc. So far have >> been unable to get any of the CBL data to show up in my table views. Still >> tinkering. >> >> On Monday, February 10, 2014 8:25:50 AM UTC-8, Jens Alfke wrote: >>> >>> >>> On Feb 9, 2014, at 11:33 AM, Jens Alfke <[email protected]> wrote: >>> >>> It's been checked in since beta 2, although we didn't include it in the >>> binary release. If you want to use it, clone the Couchbase Lite repository, >>> check out the 'stable' branch, and copy >>> Source/API/Extras/CBLIncrementalStore.* into your project. >>> >>> >>> I just looked at the git history, and the above is not quite correct: >>> >>> - CBLIncrementalStore was merged in just *after* beta 2. >>> - The best commit to check out to get the latest source for it >>> is 5f7c6ee — you can copy the CBLIncrementalStore.* sources from there >>> into >>> your project, but keep using the beta 2 release of Couchbase Lite. >>> >>> >>> —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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/a5c9fda1-c6a3-472f-8b94-f60496777a28%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
