G
G
gomerIT2021-04-13 20:50:03
Node.js
gomerIT, 2021-04-13 20:50:03

What ready-made normal wrapper for working with Mysql can I take?

I use the mysql2 package to connect npm, but I have to write my own promises for normal operation (so as not to write nested queries inside functions), which is not very convenient. I found the json-mysql package to be handy, but it was last updated 2 years ago. What can you advise? Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Lyskov, 2021-04-13
@Vlatqa

TypeORM

M
mitya_k, 2021-04-15
@mitya_k

  • require('mysql2/promise') and async/await
  • knex as a query builder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question