-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query in sync mode? #46
Comments
No. Node.js does not have sync networking, that's the whole point : ). |
The method querySync can be implemented by using execution blocking. If I implement it, do I have any changes to have my pull request merged? This will help escape callback-hell that you can see currently if you need to call several queries sequentially. |
Don't nest your callbacks, split into different functions and probably files. You'll see you're not going to have more than 3 or 4 scope levels. |
Thank you for your advice. I agree, it will make is simpler. But querySync still makes the logic much simpler. |
Update entrypoints to read DATADIR from the MySQL configuration directly instead of assuming /var/lib/docker
Is is possible to run query in sync mode? Some tricks?
The text was updated successfully, but these errors were encountered: