warvariuc
warvariuc

Reputation: 59604

SQLAlchemy declarative extension vs. elixir

I am planning to use SQLAlchemy in one of my projects and i am very interested in declarative syntax of tables.

I was told to use the Elixir Declarative Layer for that, at the same time SQLAlchemy has its built-in declarative extension.

What are the current differences between Elixir and the declarative extension? Advantages/disadvantages?

Upvotes: 6

Views: 1837

Answers (1)

keithjgrant
keithjgrant

Reputation: 12749

Elixir exists because SQLA Declarative didn't. Now that we have SQLAlchemy declarative, you probably don't need Elixir unless there's a specific way it does things that you prefer. Just be aware that Elixir is a dead project, and you will be stuck with an older version of SQLAlchemy.

Upvotes: 12

Related Questions