The mysql library does not support promises and associated syntax such as async/await. Being able to use promises for the db-calls can simplify many sections of the code, especially where multiple SQL statements are made. It would be best to support both callbacks and promises from the same client. DB pooling can also be incorporated at the same time.
The mysql library does not support promises and associated syntax such as async/await. Being able to use promises for the db-calls can simplify many sections of the code, especially where multiple SQL statements are made. It would be best to support both callbacks and promises from the same client. DB pooling can also be incorporated at the same time.