Core Data data schema from existing SQLite database

后端 未结 3 547
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 01:56

Is it possible to generate a .xcdatamodel (CoreData data model) from an existing SQLite database file?

I\'ve developed a SQLite database and written a Java API again

3条回答
  •  一生所求
    2021-01-12 02:28

    No. Core Data is not just a thin wrapper around SQLite. It's an object store that can (optionally) be persisted to a SQLite database. This means that Core Data models do not have a direct mapping to the SQLite database.

    In your case I'd recommend using one of the SQLite wrappers that are available (I've not used any of them so I couldn't recommend any one in particular).

提交回复
热议问题