开发者

iPhone database

Could you guys let me know which is better, using sqlite3 or core d开发者_Go百科ata? What are the pros and cons using either method?


What's your use case?

Core Data is a pretty hefty framework and it offers a lot more than just plain old persistence. It incorporates support for faulting, relationship management of objects, schema migration support, validation and nice integration with UITableViews via the NSFetchedResultsController. The big win for me is that it's completely modelled on objects. Sqlite is more than adequate for an app with a single isolated table, high scores in a game etc, but for anything more complex I would consider core data.

Apple's introduction to Core Data mind help you decide if it's appropriate for you or not...

Core Data Programming Guide


Sqlite3 is better to use for the database, because of using this sqlite3 you can access easily the data and It's easier as you do query on other database like SQL, ORACLE.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜