It is better to use for MySql on Nodejs?

The question arose when using MySql in Nodejs what to use, used native mysql, then sequelize, sequelize gives in but very difficult to study, and promises sometimes difficult to process the data in the database, what can you recommend another? with their best side or sequelize the best option, and I be better to study it?
June 10th 19 at 15:34
2 answers
June 10th 19 at 15:36
Solution
If you need direct queries to the database - either mysql (callback api) or mysql2 (promise api)
If you need ORM sequelize
This is normal in the same project to use ORM and direct queries to the database. Not every ORM query can be optimally built.

Here only did not understand what promises prevent to process the data. In my opinion they can only help
June 10th 19 at 15:38
Solution
To find the strength to read the documentation for sequelize, because there just quite yet and the box has a lot of advantages. Different dialogs, transactions, associations and migration.
A small question came here, how about creating a database without migration, there are more convenient options? and then write all 20 tables in the manual damn lazy) what are the options? - Sydnee.Ha commented on June 10th 19 at 15:41
it does not like to write the table manually to generate files for migration - Sydnee.Ha commented on June 10th 19 at 15:44
mongo - Wava_Berni commented on June 10th 19 at 15:47

Find more questions by tags MySQLNode.js