r/javascript • • Dec 10 '19

Stop using Knex.js

https://medium.com/@gajus/stop-using-knex-js-and-earn-30-bf410349856c
0 Upvotes

20 comments sorted by

View all comments

4

u/libertarianets Dec 10 '19 edited Dec 10 '19

Stop using ORMs.

EDIT: Unless you're often switching between relational databases, which is the perfect use case for an ORM.

EDIT EDIT: I guess the point I'm trying to make is that database query languages aren't scary. Learn them rather than and unlock their full power without constraints of a query builder or ORM.

8

u/Funwithloops Dec 10 '19

This is such an elitist attitude in software. Use ORMs where they make sense. Don't use ORMs where they don't. There are plenty of simple cases where an ORM works just as well or better than raw SQL.

And Knex isn't even an ORM. It's a query builder.

3

u/libertarianets Dec 10 '19

You're right. I'll edit my comment.