Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 790 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 790 Bytes

mysql-query-observable

npm version wercker status

Creates Rx observable from query

Example

$ npm install --save mysql-query-observable
import {createObservableFromQuery} from 'mysql-query-observable'

createObservableFromQuery(`
  SELECT * FROM item ORDER BY id ASC LIMIT 2
`)
.toArray()
.subscribe(data => console.log(data)) // [{item1}, {item2}]