Core Data

Rathish Kannan
1 min readJan 21, 2019

--

Core Data is a framework to manage database. CoreData is not a database. Core Data can use SQLite as its persistent store.

  • SQLite database is the default persistent store for Core Data on iOS
  • Not a relational database
  • Interact in Object oriented way

CONCEPTS

Persistent Stores : Repository where data is stored. It is the object that holds the data eg: SQLite which is the default. It can be XML or any other database.

Managed object context : temporary memory area, contains objects that interact with persistent store. Manages objects from core data framework.

Persistent Store Coordinator : responsible for managing different persistent object stores and saving the objects to the stores.

Managed object model : Database schema Eg : MyData.xcdatamodeld < db model in xcode >

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response