Answer the question
In order to leave comments, you need to log in
How to close connection after all MySQL queries are done?
In short, this is how my script sends many requests to insert data into MySQL - you need to understand when all requests will pass and close the connection.
In this case, everything is performed not by sequential requests, but in a loop with a bunch of nested forEach (parser). How to be? It is necessary that the script ends, and does not hang, because. its constant restart is required upon completion
Yes, Node.js
It was in the tags - I didn’t write in the text
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question