Can we use union of two sqlite databases with same tables for Core Data?

Posted by Tofrizer on Stack Overflow See other posts from Stack Overflow or by Tofrizer
Published on 2010-05-25T13:13:41Z Indexed on 2010/05/25 15:01 UTC
Read the original article Hit count: 203

Filed under:
|
|

Hi All,

I have an iPhone Core Data app with a pre-populated sqlite "baseline" database. Can I add a second smaller sqlite database with the same tables as my pre-populated "baseline" database but with additional / complementary data such that Core Data will happily union the data from both databases and, ultimately, present to me as if it was all a single data source?

Idea that I had is:

1) the "baseline" database never changes.

2) I can download the smaller "complementary" sqlite database for additional data as and when I need to (I'm assuming downloading sqlite database is allowed, please comment if otherwise).

3) Core Data is then able to union data from 1 & 2. I can then reference this unified data by calling my defined Core Data managed object model.

Hope this makes sense.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about sqlite