Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Z_ENT column in SQLite database that gets created by Core Data?

Tags:

When you use Core Data with SQLite database as underlying data store, core data will autogenerate some columns...

One of them is "Z_ENT" and another is "Z_OPT"

I believe "Z_OPT" is for how many times the record has been altered. Can anyone tell me what Z_ENT is for?

Thanks!

like image 662
sayguh Avatar asked Dec 09 '11 16:12

sayguh


People also ask

What is Core Data SQLite?

Core Data can use SQLite as its persistent store, but the framework itself is not a database. Core Data is not a database. Core Data is a framework for managing an object graph. An object graph is nothing more than a collection of interconnected objects. The framework excels at managing complex object graphs.

Is Core Data based on SQLite?

Although Core Data supports SQLite as a store type, the store format—like those of the other native Core Data stores—is private. You cannot create a SQLite database using the native SQLite API and use it directly with Core Data, nor should you manipulate an existing Core Data SQLite store using native SQLite API.


1 Answers

"Z_PK is the unique id for each, Z_ENT is their entity id (same as what’s listed in the Z_PRIMARYKEY table"

From here

like image 74
Wevah Avatar answered Sep 18 '22 18:09

Wevah