Re: Ad-hoc Core Data queries ?
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