-2

I have a sqlite database designed by a DBA, i would like to use that SQLite file as persistence in core data. I dont have any idea about integrating the SQLite file with core data. Can some one help me.

Karthick
  • 382
  • 1
  • 3
  • 23
  • 2
    I dont think you can create a coredatamodel from a Sqllite File. – Bonnie May 07 '13 at 10:59
  • 1
    See also: [how to import databse schema in core data](http://stackoverflow.com/questions/12785131/how-to-import-databse-schema-in-core-data). – Martin R May 07 '13 at 11:01

3 Answers3

-1

I think the better way to approach this is to add coredata to your application. Then create a class that will parse from the sqlite to coredata. It isn't recommended to "copy, paste" the sqlite that you have with the one CD creates

William Falcon
  • 9,813
  • 14
  • 67
  • 110
-1

You cannot use SQL file created by DBA with CoreData. As CoreData creates it own keying system (transparent for users) to manage different tables in the CoreData model. Nonethless you can model you CoreData model using SQL file and import the data on first time app is initialized.

object2.0
  • 891
  • 1
  • 12
  • 12
-2

you will have to Format the sqllite File accordingly to be used for core data, have a look at these Tutorial 1 ,Tutorial 2

Bonnie
  • 4,943
  • 30
  • 34