Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alex0007/mysql-query-observable
🌀 function that returns Rx observable from MySQL query
https://github.com/alex0007/mysql-query-observable
mysql rxjs
Last synced: about 1 month ago
JSON representation
🌀 function that returns Rx observable from MySQL query
- Host: GitHub
- URL: https://github.com/alex0007/mysql-query-observable
- Owner: Alex0007
- Created: 2016-07-31T13:38:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T10:45:48.000Z (over 7 years ago)
- Last Synced: 2024-10-29T01:08:27.862Z (about 2 months ago)
- Topics: mysql, rxjs
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mysql-query-observable
[![npm version](https://badge.fury.io/js/mysql-query-observable.svg)](https://badge.fury.io/js/mysql-query-observable) [![wercker status](https://app.wercker.com/status/84e014aa4dec0b56ee7222c9fda64498/s/master "wercker status")](https://app.wercker.com/project/bykey/84e014aa4dec0b56ee7222c9fda64498)> Creates Rx observable from query
- Uses pooling
- Requires [pgsql environment variables](https://www.postgresql.org/docs/8.4/static/libpq-envars.html) to be set### Example
```console
$ npm install --save mysql-query-observable
``````js
import {createObservableFromQuery} from 'mysql-query-observable'createObservableFromQuery(`
SELECT * FROM item ORDER BY id ASC LIMIT 2
`)
.toArray()
.subscribe(data => console.log(data)) // [{item1}, {item2}]
```