CodecademyCommunity / codecademy-discord-bot

Custom moderation bot for the official Codecademy Community Discord server.
https://codecademycommunity.github.io/
MIT License
11 stars 1 forks source link

MySQL client does not support promises #304

Closed mikejoh12 closed 2 years ago

mikejoh12 commented 2 years ago

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.