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.

2

u/GolemancerVekk Dec 11 '19

If your data model is object-oriented and your database is relational then ORM (in the sense of Object-Relational Mapping) is not a choice. You're doing it, period. It's your choice whether you code your own homebrew mapping or use an established ORM solution, but don't kid yourself that you can "stop using ORM".