Alex Rivera | Logout

How to open a core data database?

Asked 2009-09-10T14:16:52.513
18

Is there any way in which I can view my core data database without having to load it programatically through the code?!

Edit
Report

1 Answer

5

It depends what format the data store is (Core Data currently supports XML, binary, and SQLite persistent data stores). XML data stores can be viewed using a text editor. Binary data stores can only be accessed via code. You can open a SQLite data store via the sqlite command line or via any number of GUI SQLite browsers. Keep in mind, however, that the on-disk representation (in a data base or otherwise) is an implementation detail of how Core Data chooses to persist an object graph to disk. Don't rely on this format in any way except to satisfy your curiosity. If you are trying to track down a bug, there are much better ways than poking in the data store.

answered 2009-09-10T19:01:17.167

Your Answer