mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Supporting Observables

Open HassanAzzam opened this issue 6 years ago • 5 comments

Is there a way to use Observables instead of callbacks for queries?

HassanAzzam avatar Oct 18 '18 20:10 HassanAzzam

I'm not sure what that is. I would say no as I don't believe that is in this module.

dougwilson avatar Oct 18 '18 20:10 dougwilson

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.

HassanAzzam avatar Oct 18 '18 20:10 HassanAzzam

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

dougwilson avatar Oct 18 '18 20:10 dougwilson

What we gain using observables here?

brunotiago avatar Oct 26 '18 08:10 brunotiago

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

FrancescoBorzi avatar Apr 14 '19 15:04 FrancescoBorzi