• 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: Ad-hoc Core Data queries ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ad-hoc Core Data queries ?


  • Subject: Re: Ad-hoc Core Data queries ?
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 4 Nov 2005 10:19:28 -0800


On Nov 4, 2005, at 9:10 AM, Rob Mayoff wrote:

+---------- On Nov 4, mmalcolm crawford said:
| > Something like the openisql SQL interpreter we have in Openbase,
| > but working at the Core Data level. Is there such a tool ?
| I'm not aware of one, but it shouldn't be too difficult to write.
It might be easier just to migrate the store to SQLite and then use
/usr/bin/sqlite3.

Possibly, but:

This may require you to manually convert all the files -- not much fun (even with an Automator script... that you have to write), and perhaps something you don't want to do (presumably there was a reason for choosing XML or binary rather than SQLite). A command line tool to convert the format will require much of the same code as a query tool. You might then not know the syntax for sqlite3 queries. Even if you do, then the tables names etc. are unlikely to match exactly the names of the entities you defined, and the Cocoa predicate may be easier to use -- especially if you want to follow key-paths...

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Ad-hoc Core Data queries ? (From: "Peter Raul" <email@hidden>)
 >Re: Ad-hoc Core Data queries ? (From: mmalcolm crawford <email@hidden>)
 >Re: Ad-hoc Core Data queries ? (From: Rob Mayoff <email@hidden>)

  • Prev by Date: Re: Flushing events [SOLVED]
  • Next by Date: Registering file types...
  • Previous by thread: Re: Ad-hoc Core Data queries ?
  • Next by thread: Re: Ad-hoc Core Data queries ?
  • Index(es):
    • Date
    • Thread