Coder Social home page Coder Social logo

magicalrecord's Introduction

Awesome MagicalRecord

Build Status

In software engineering, the active record pattern is a design pattern found in software that stores its data in relational databases. It was named by Martin Fowler in his book Patterns of Enterprise Application Architecture. The interface to such an object would include functions such as Insert, Update, and Delete, plus properties that correspond more-or-less directly to the columns in the underlying database table.

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 creation of an object, a new row is added to the table upon save. Any object 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.

- Wikipedia

MagicalRecord was inspired by the ease of Ruby on Rails' Active Record fetching. The goals of this code are:

  • Clean up my Core Data related code
  • Allow for clear, simple, one-line fetches
  • Still allow the modification of the NSFetchRequest when request optimizations are needed

Documentation

magicalrecord's People

Contributors

casademora avatar tonyarnold avatar blackgold9 avatar crayment avatar briandoig avatar ccwasden avatar idpaterson avatar angelolloqui avatar baron avatar steipete avatar nzkoz avatar myell0w avatar gregfu avatar kingofbrian avatar tonyxiao avatar nvie avatar dulacp avatar nicksnyder avatar govi avatar emrosenf avatar duanefields avatar defvol avatar tcort avatar vially avatar yas375 avatar vincilbishop avatar vojto avatar greenmobile avatar modocache avatar nerdery-isaac avatar

Watchers

Paweł Smoczyk avatar CreativeLabs.pl avatar Emil avatar Karol Wojtaszek avatar James Cloos avatar Piotr Adamczak avatar  avatar Piotr Bernad avatar Maciej Kaszubowski avatar Bartłomiej Różański avatar Eugeny avatar  avatar Kamil avatar Jakub Kasprowicz avatar piotrknop avatar  avatar Lukasz Matuszczak avatar Szymon Mrozek avatar Kacper avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.