开发者

SQLAlchemy and Elixir? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_开发百科 Closed 9 years ago.

I have been using django ORM, it's nice and very easy, but this time I'm doing a desktop app and I found SQLAlchemy, but I'm not sure to use it with Elixir. What do you think? is it really useful?


I'm not sure you need Elixir any more. With the Declarative mapper, you can create classes that map to your tables similar to the way it's done by Elixir. Is there a specific elixir feature that you're looking for?


Use SQLAlchemy with Elixir if you need Django-style (or Rails-style) simple object-relational mapping. If you need complex mapping like concrete table inheritance or dictionary-based collections, I recommend you to use just SQLAlchemy with sqlalchemy.ext.declarative.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜