News for hackers. Stuff that matters.
Re:Ask HN: Is it reasonable to choose direct SQL over an ORM by mattbillenstein on Friday March 22, 2019 @11:17PM (#19468850)
It is! And it's a fun way to program imo.

I'm working on a project now, the api is graphql using Graphene in Python (flask-graphql with graphiql support), so we basically define the models using that. The graphene resolvers talk to a package called "services" which is where all the business logic and queries live, and services talks to another package "db" which deals with taking sql+params and returning dict rows.

It is exceedingly simple, easy to debug, and we're using postgres, so if you have a sensible schema, postgres can do just about anything you want to do very easily. We're using postgis, and postgres search features under the hood.

Re:Ask HN: Is it reasonable to choose direct SQL over an ORM by thymanl23 on Saturday March 23, 2019 @08:26AM (#19470154)
Wow, that sounds like a really neat approach!!