0

I have a sqlite script as a .db file and I want to execute it in order to create and fill coredata tables. There is a way to perform that with objective-C on a iPhone application ? Can't find a solution.

Thanks for your help.

1 Answer 1

4

No, you cannot mix plain SQLite and Core Data based SQLite. Core Data uses a specific design for its tables that you should not try and replicate outside of Core Data.

Use Core Data to populate a Core Data SQLite file.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks ! But how can I populate my coredata database with my sqlite database ?
Depends on your DB file. Consider how you would access it in Objective-C and then write migration code to get the data into Core Data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.