Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective C ORM

I am new to Objective C. In previous practice I accustomed to use ORM-like frameworks to access the database.

Could anyone please recommend any decent ORM framework for Objective C?

like image 519
ibo.ezhe Avatar asked Dec 17 '11 14:12

ibo.ezhe


4 Answers

The following are for SQLite on iOS:

  • FMDB
  • chibi-ORM
  • sqlitepersistentobjects
like image 122
Jomoos Avatar answered Oct 21 '22 02:10

Jomoos


UPDATE: DBAccess has now been replaced by the open source ORM Shark.

We have recently released a free to distribute and use ORM for Objective-c / iOS called DBAccess, which can be downloaded from http://db-access.org/, it has taken several years to develop and has now been deployed within many applications.

The documentation is fairly basic, but is slowly getting created/updated and we welcome community feedback and suggestions.

There is also a roadmap available to detail what features are going to be released in the up-coming releases.

It may not be for everyone, but I hope our effort will help some in the community.

NOTE, I have been alerted to the fact that it is bad form to promote your own products in a forum such as this, but I just wanted to add that I am only posting this in answer to the OP because I feel it does bring something useful to the table and I sincerely hope it will prove helpful to some people, even if it's not for everyone.

UPDATE: DBAccess has now been replaced by the open source ORM Shark. It is API compatible, and is available on github. http://sharkorm.com and https://github.com/sharksync/sharkorm

Thanks Adrian_H

like image 30
Adrian_H Avatar answered Oct 21 '22 03:10

Adrian_H


There are a lot of alternatives out there, but in my opinion, nothing is better than Apple's Core Data. It is easy to use and implement, and is incredibly well documented (as everything that comes from Apple).

One excellent resource to learn Core Data quickly and use it right away is Paul Hegarty's CS193P videos available on iTunes U, which you can download using the following link:

http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=480479762

like image 23
Luiz Carlos Querino Filho Avatar answered Oct 21 '22 02:10

Luiz Carlos Querino Filho


SQPersist is a Objective-C Persistence framework wrapper around SQLite based on FMDB :
Visit Github page

like image 1
Christopher Avatar answered Oct 21 '22 02:10

Christopher