Hacker News new | past | comments | ask | show | jobs | submit login

And if you just want a flexible ORM without models, knex (http://knexjs.org/), which bookshelf uses.

I found knex + Postgres to be a great combination.




I really really really like Knex. While Mongo claims to be "easy" and "js-native", It's far easier doing complicated queries with Knex on Postgres than on Mongo with the official client.

I work on a mongo project and doing aggregate queries is really ugly and painful. Everyone praising mongo probably never made "advanced" queries like that or dismissed SQL as shitty and unsecure without ever using it.


What would be 'unsecure' about SQL? Not sure I ever heard that argument before.


unparamatarized queries are the usual issue, so not an issue with sql as much as how people misuse sql.


Likely also better performance with just using Knex. Any ORM likely adds overhead, Sequelize definitely does, although we keep working on reducing that overhead - But inevitably features === overhead.


I personally wouldn't consider Knex an ORM. I'd describe it more as:

A cohesive set of functions that help you build and execute SQL operations.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: