Bridge Callback and Promise APIs
Wrap a legacy callback-based client so it can be used with async/await.
We'll cover the following...
We'll cover the following...
Problem statement
Your system relies on a legacy database client that still uses Node.js-style callbacks:
db.query('SELECT * FROM users', (err, result) => { ... });
Modern code in your app, however, uses async/await everywhere. Mixing both styles ...