Is there an ORM framework for Cocoa, or a framework that accomplishes a similar goal using a different technique?

后端 未结 4 512
执笔经年
执笔经年 2021-01-20 05:19

I\'m developing an application that needs to store lots of records in an organized way. Specifically, I\'m writing a personal finance app. As you can imagine, this app will

4条回答
  •  一生所求
    2021-01-20 05:21

    Is there an ORM for Cocoa? I'm looking for something like Django's ORM layer, or Rails' ActiveRecord. (I only need it to connect to SQLite databases, though.)

    Technically, no.

    Or should I just use CoreData for this? Will it fit my needs well?

    You can try, but CoreData is not likely a good fit. CoreData has some ORM like features, but is not really an ORM.

    Or am I barking up the wrong tree, and should be looking at another framework that accomplishes my goals with a different technique?

    There are alternatives, but nothing that approaches a native Cocoa ORM. One such option is to use a Java ORM like Hibernate which you then call from your Cocoa code.

    In reality, you don't need an ORM. You could build a simplistic ORM yourself on top of the OSX SQLLite framework. If you then open sourced your simplistic ORM, this question would have a better answer. :)

提交回复
热议问题