1.0.7 • Published 6 years ago

rx-from-mysql v1.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

#rx-from-mysql

Creates an Rx Observable from a mysql query. You can use the Rx capabilities on it. This code is not tested in an production environment and is done only for learning purposes.

An example of use:

"use strict";
var rxFromMysql = require('./rx-from-mysql');

var config = {
    host: '192.168.1.1',
    user: 'root',
    password: 'superSecretPassWord'
};

var query = 'select * from table';

var rowDataPacket$ = rxFromMysql(query, config);

rowDataPacket$
    //.map
    //.filter
    .subscribe(
        function next(nextRowDataPacket) {
            console.log('next', nextRowDataPacket)
        },
        function (error) {
            console.log('ERROR', error);
        },
        function complete() {
            console.log('complete');
        }
    );

##Install:

npm install rx-from-mysql --save

##from git git clone https://github.com/pascualmg/rx-from-mysql.git

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago