Re: [Pyobjc-dev] SQLite and PyObjC
Brought to you by:
ronaldoussoren
|
From: John V. <ve...@co...> - 2008-07-06 22:20:28
|
On Sat, Jul 05, 2008 at 01:42:04PM -0700, Samantha Atkins wrote: > --snip-- > > Core Data is a general "document" / application data store Cocoa framework. > It covers both flat flie, XML and sqlite stores. Its API is the same on > all. Among other things this means that some capabilities of a RDBMS are > not exposed by Core Data. Core Data is more or less an ORM or rather an > OSM where the S is more generic store than just relational. As such it > imposes its own layout to the underlying sqlite tables to support a subset > of object persistence. I would not recommend that you programs attempt to > grok and correctly handle that layout directly. Instead for a Core Data > database you should use the Core Data framework from pyobjc. There are > some shortcuts that get around some of the Xcode and application centric > docs on Core Data. For one thing there is a "MOM" file for any Core Data > database and Core Data APIs that you can use to dynamically read a MOM, > parse out the types of Entities and Relationships and then go from there to > read any data in the Core Data db and show it any way you want. > > Hope that helps. Thanks, Samantha. This is a help. Best, John V. |