logoalt Hacker News

Daishiman • yesterday at 11:45 PM • 2 replies • view on HN

They all say that until your business logic is so convoluted that maintaining several dozen SQL queries begets more work than sensible so you end up inventing your own query builder which is fine until you realize you really need business objects so you make up your own ORM and then you realize you needed SQLA or some similar piece of tech all along.

Tale as old as time.


Replies

scorpioxy • today at 12:28 AM

I agree and I've seen a similar argument a few times before. All of those times had the same ending.

SQLAlchemy is a beast for sure. But the complexity is not for fun. It gives you a lot in return. If your needs are simple, it's probably overkill. And this library is not for running queries, it's an ORM. Which has a component that will eventually need to send the queries to the database but it's a lot more than that.

listenallyall • yesterday at 11:50 PM

You're not entirely wrong. But SQLAlchemy's approach and design are still awful and confusing. There are much, much better tools/libraries out there.

➕ show 1 reply