maxday
maxday

Reputation: 1332

Fetch data from a SQLite View with CoreData

Is it possible with Core-Data to fetch data from a view ? (I mean a SQLite View)

On the first launch of my iOS app, I load data from a single SQLite file into my Core-Data store, but in this sqlite file, I also have a view. How can I handle this with Core-Data ?

I would like to be able to fetch data from this view.

Upvotes: 0

Views: 90

Answers (1)

Mundi
Mundi

Reputation: 80265

A view is really nothing but a select statement. Just sync these separately using simple SQL strings. You can store them as FetchRequestTemplates in your Core Data model.

Upvotes: 1

Related Questions