4 ms·
Well said. I bitterly hated sqlalchemy because many times I knew perfectly well how to write a query in plain sql but for the life of me I couldn't figure out h
by tmefq 7y ago
Well said. I bitterly hated sqlalchemy because many times I knew perfectly well how to write a query in plain sql but for the life of me I couldn't figure out how to write the same query using the sqlalchemy language.
- hcho 7y agoDoesn't alchemy have an execute method, to which you can pass a raw sql?
- runin2k1 7y agoOf course it does. Not that a little detail like that would stop someone from complaining about something that they don't put in the effort to learn.
- OJFord 7y agoIf you just use that all the time, your coworkers will rightly complain that it's not idiomatic or using the tooling available in code review. I'm all for SQL, but if the project's set in its ORM then it doesn't make sense to do ORM.raw(...) or whatever out of preference alone.
- tmefq 7y agoYes that's what happened to me. Project requirements.
- TomMarius 7y agoThat doesn't seem like something I'd accept from a developer on my team