Magical Record is a popular library for simplifying Core Data-related code. It was inspired by Ruby on Rails' ActiveRecord.
"Active record is an approach to accessing data in a database. A database table or view is wrapped into a class; thus an object instance is tied to a single row in the table. After creating of an object, a new row is added to the table after saving the table. Any object that is loaded gets its information from the database; when an object is updated, the corresponding row in the table is also updated. The wrapper class implements accessor methods or properties for each column in the table or view."
This is the definition given in http://en.wikipedia.org/wiki/Active_record_pattern.
The goal of a library is:
To clean up Core Data-related code
Allow for clear, simple, and one-line fetches
Allow the modification of the
NSFetchRequest
method when request optimizations are needed
The repository containing the source code of Magical Record and some documentation on...