What is the difference between kenxjs and sequeilize if I want to use MySQL as a database in my node js application?
Asked
Active
Viewed 530 times
0
-
https://stackoverflow.com/questions/56028287/how-is-node-js-knex-similar-different-to-sequelize – Goon Nguyen Apr 12 '20 at 09:51
1 Answers
0
Knex is just a query builder while Sequelize is an ORM. So Knex just simplifies the proccess of building SQL-queries for you and in Sequelize first of all you define models that are corresponding to your tables and associations between them and after that you work through this models and not with plain SQL. Sequelize makes you think in terms of domain models and not just SQL-queries.

Anatoly
- 20,799
- 3
- 28
- 42