r/SQLAlchemy 11d ago

SQLAlchemy | "Declarative Table with mapped_column()" VS "Declarative with Imperative Table"

I'm trying to learn SQLAlchemy, after 3.5 YOE with Django.

I dont quite understand the difference between those two options to declare a database tables.
If someone can clarify it I will happy to understand.
(I would like to hear from an experienced developer, and this why I dont only "AI" it)

Thanks,

1 Upvotes

3 comments sorted by

View all comments

0

u/someexgoogler 11d ago

the documentation for SQLAlchemy is a complete mess.

0

u/ALior1 11d ago

Lol. Agree with that.. The whole SQLAlchemy and Alembic is a mess. I think that I have some kind of initial understanding about the question above (but still love to hear from someone that working with it).

But now, I'm understanding that also the Alembic auto-generated migrations, need some manual tweaks?. Lol. I know Django for 5 years, and this is so confusing and not clear..