Node.js Synchronous queries with MySQL

前端 未结 6 2006
走了就别回头了
走了就别回头了 2021-01-01 23:23

I\'m working on creating a user registration system for a website that I am working on but I am running into a few issues.

I\'m trying to stay away from having to ne

6条回答
  •  悲哀的现实
    2021-01-01 23:38

    There could be conditions when you need sync queries (or at least for readability or simplicity). I do not agree with that everything have to be done in the async way at node.js.

    I have tested a lot of available solutions and ended up with the "sync-mysql" module (https://github.com/ForbesLindesay/sync-mysql).

    Easy to install and use, but not that good in performance (especially if you have to do a lot of sub-queries).

提交回复
热议问题