It used to be the case where, in order to
actually process data retrieved from the database using
Connector/Node.js, you would have to resort to
an API that required the use of both JavaScript callbacks and
Promise
s. This was meant to provide more flexibility
and control to the application developer and at the same time
decrease the chance of buffering data unnecessarily. However this
wasn’t useful for 99% of the use-cases and made simple tasks a
little bit cumbersome. Also, the fact that it required using two
different asynchronous constructs made it a little bit harder to
grasp.
To make matters worse, in order to consume operational metadata about the columns in the result set, you would have to provide an …
[Read more]