var query = Rx.Observable.fromCallback(dbConnection.query);
var obs = query('select * from mytable where id = ?', ['389']);
obs.subscribe(
function(e) = {}
);
This code is giving me TypeError: Cannot read property 'typeCast' of undefined.
The documentation for MySqlJs query method looks like this:
connection.query('SELECT * FROM `books` WHERE `author` = ?', ['David'], function (error, results, fields)
When I log query it returns [Function]. What am I doing wrong?