Core Data Import
Core Data Import
- Subject: Core Data Import
- From: Charles Ross <email@hidden>
- Date: Tue, 23 May 2006 09:17:48 -0700
Can anyone suggest a simple way to get data from an existing SQLite
database into a Core Data file? Some time ago I began a personal
project in REALbasic that I would like to move to Cocoa. The only
thing keeping me from doing so is my inability to get my existing
data out of the REALSQLDatabase file and into the SQL file used by
Core Data. I tried taking a look at the structure of the SQL file
created by Core Data and editing a SQL dump from the existing file
and executing that edited dump with BBEdit, but, although the data
was inserted according to the sqlite3 command line tool, it doesn't
appear when I open the file in my application (although the records
that I created from within the application do still appear).
My existing REALSQLDatabase file has only a single table, so
relationships aren't an issue, and there are only about seven or
eight fields.
I'm an Objective-C newbie, and so I have no idea how to begin writing
custom code to perform the action in Objective-C. If I can do this
with AppleScript Studio, I could write the code, but I don't know how
to integrate Core Data and AppleScript Studio. Any help would be
appreciated.
Thanks,
Chuck Ross
_______________________________________________
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