SQLAlchemy and Elixir? [closed]
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
.
精彩评论