2

My understanding is that sqllite is pretty much the only choice for database on the iphone. Is there an O/R Mapper for it?

mjv
  • 73,152
  • 14
  • 113
  • 156
fregas
  • 3,192
  • 3
  • 25
  • 41

2 Answers2

2

If you're looking for object persistence, Core Data is the obvious way to go.

There's also FMDB. There are others, but look at Core Data first.

Terry Wilcox
  • 9,010
  • 1
  • 34
  • 36
  • FMDB is not an ORM, but it's about all you've got if you have to work with an existing SQLite file/schema rather than letting Core Data handle the schema for you. – Barry Wark Nov 23 '09 at 22:07
1

Although Apple's Core Data framework is not an ORM, it may be what you are looking for. In particular, if what you want is to persist your object model to a database to make it possible to have object graphs that are larger than available memory or to make querying efficient, Core Data is a good solution. If, on the other hand, you are trying to find an ORM to work with an existing SQLite database, you're out of luck.

Community
  • 1
  • 1
Barry Wark
  • 107,306
  • 24
  • 181
  • 206