Search code examples
pythonsqlalchemypython-elixir

SQLAlchemy and Elixir?


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?


Solution

  • 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.