Node, mysql sequential query execution (async/await method)

mysql consecutive queries

This is not a guide to JavaScript callbacks, promise, async/await works, there are many free tutorials made by professionals and simple to find on google Prerequisites:NodeJs 7.6+npm mysqlFor this example, I’ll use the query SELECT sleep(x) to return 0 after x seconds Let’s see the code: The result is: The two queries were run in … Read more