• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using existing SQLite database with core data?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using existing SQLite database with core data?


  • Subject: Re: Using existing SQLite database with core data?
  • From: mmalc crawford <email@hidden>
  • Date: Tue, 8 Apr 2008 07:24:12 -0700


On Apr 7, 2008, at 2:36 PM, Quincey Morris wrote:

On Apr 7, 2008, at 12:10, Chris Hanson wrote:

On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote:
Yet a core principle of Core Data is its abstraction of the model away from the structure of the various persistent store formats.

Core Data already offers the ability for developers to use an arbitrary schema for a persistent store: You can subclass NSAtomicStore and use it to implement any schema you like for your persistent stores, with the constraint that you will get atomic load/save semantics instead of transactional load/save semantics.
This does not in itself let you use an arbitrary database schema with an SQLite persistent store. But it does demonstrate that doing so would not be an abandonment of any principles that you seem to have inferred.

I think we are talking about different things. I am not, and never was, talking about file formats, although I admit that the sentence you quoted fails to make this clear.
The question is this:
What administrative information -- that is, what data and data structures apart from the actual modeled data, and apart from the administrative information that is present in all sqlite databases anyway -- does Core Data in general require its sqlite persistent stores to store?


In principle, none.

If you're saying, as an expert on Core Data,

Well, given that Chris wrote parts of Core Data, I think it would be reasonable to take his word for this.

So, as has been said several times now:
Core Data could still be "an object graph management system with a persistent store" whilst at the same time using an RDBMS as a back end (one of the supported persistent store types) and being able to interrogate the database to derive a model.
If you would like a future version of Core Data to have this functionality, file an enhancement request at <http://bugreport.apple.com/ >.



mmalc


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Using existing SQLite database with core data? (From: Peter Zegelin <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Quincey Morris <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: mmalc crawford <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Quincey Morris <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: mmalc crawford <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Peter Zegelin <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: mmalc crawford <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Quincey Morris <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Chris Hanson <email@hidden>)
 >Re: Using existing SQLite database with core data? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSString format parameter order
  • Next by Date: Saving NSFonts and changedFont: trouble
  • Previous by thread: Re: Using existing SQLite database with core data?
  • Next by thread: Re: Using existing SQLite database with core data?
  • Index(es):
    • Date
    • Thread