Hacker News new | ask | show | jobs
The easiest way to query Postgres in Node.js (medium.com)
1 points by ForbesLindesay 2452 days ago
1 comments

The issue I found with the raw SQL approach was receiving back flat results. I made PureORM[0] to do only and exactly that: map flat data to correctly nested business objects.

It is called "pure-orm" both because it is _purely_ an ORM (no query builder api), as well as because it returns _pure_ business objects (instead of db-aware objects).

[0] https://github.com/craigmichaelmartin/pure-orm

That looks like a pretty cool project. I wonder how much work it would be to integrate with https://www.atdatabases.org/ to get the proper protection from SQL Injection.