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/5b882d42-2c16-47f7-a886-13845a734f5c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to