mysql
mysql copied to clipboard
Supporting Observables
Is there a way to use Observables instead of callbacks for queries?
I'm not sure what that is. I would say no as I don't believe that is in this module.
Here is an overview about it.
I took a look at the source code and yes you're right.. I'm looking forward for seeing it in the upcoming versions. If there is a way for contribution in this matter, then I'm in.
To be honest it is unlikely I would work on this. Probably the only way to see it come is if someone volunteers to implement it. You can find contribution tips here https://github.com/mysqljs/mysql/blob/master/Readme.md#contributing
What we gain using observables here?
Observables work already fine with this library. Check my answer here:
https://stackoverflow.com/questions/36639493/how-to-use-rxhs-mysql-and-nodejs/55677063#55677063