CoreData vs SQLite

Hello guys!
I need to use a local database to manager info about Players and Team during the last 3 years.

I know that CoreData use SQLite to store data but when CoreData is better then SQLite and when SQLite is better than CoreData??

Replies

Reasons to use Core Data:

  • You plan on using table views/collection views at some point in your project to display your stored data.
  • You don't want to write your "load data from database and store in objects" code by hand.
  • You accept the possibility that databases other than SQLite exist that you might someday want to use.

Reasons to not use CoreData:

You're getting paid to specifically use SQLite and reinvent the wheel.


DDisclaimer: Reasons from personal experience.

Not sure you can compare them like you do - CoreData is an object persistence layer, not an SQL database.


Otherwise, not using CD while using just SQLite represents more of a skills-based decision. CD requires a non-trivial skill set, which if you had, would typically mean you'd not be asking should you use.