简体   繁体   English

在iPhone开发中连接到sqlite

[英]Connecting to sqlite in iphone development

I have used sqlite database in some of my iphone applications but as you know it is a lot harder than other languages such as java and php to use database. 我已经在某些iPhone应用程序中使用了sqlite数据库,但是您知道它比使用Java和php等其他语言难得多。 Is there any way to use database easier !? 有什么方法可以更轻松地使用数据库! I found a framework in sourceforge here : http://mysql-cocoa.sourceforge.net/ but I think it is not for cocoa-touch. 我在这里的sourceforge中找到了一个框架: http : //mysql-cocoa.sourceforge.net/,但我认为它不适用于可可触摸。 Is there any other framework to ease the sqlite pain !? 还有其他框架可以减轻sqlite的痛苦吗? thanx alot 非常感谢

Try FMDB 尝试FMDB

It's an sqlite Wrapper and works with IPhone. 这是一个sqlite包装程序,可与iPhone配合使用。

Or use CoreData . 或使用CoreData It's not a database wrapper, but an object graph persistence framework, which may be what you want. 它不是数据库包装程序,而是对象图持久性框架,这可能就是您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM