我一直在使用 django ORM,它很好也很简单,但是这次我正在做一个桌面应用程序,我发现了 SQLAlchemy,但我不确定它是否与 Elixir 一起使用。你怎么看?真的有用吗?
问问题
2064 次
2 回答
11
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?
于 2010-06-24T16:48:19.597 回答
5
如果您需要 Django 风格(或 Rails 风格)的简单对象关系映射,请使用带有 Elixir 的 SQLAlchemy。如果您需要复杂的映射,例如具体的表继承或基于字典的集合,我建议您只使用 SQLAlchemy 和sqlalchemy.ext.declarative
.
于 2010-07-09T09:40:46.623 回答