https://github.com/jadbox/rxjs-massive
Rx wrapper for Massive.js for working with PostgreSQL
https://github.com/jadbox/rxjs-massive
Last synced: about 2 months ago
JSON representation
Rx wrapper for Massive.js for working with PostgreSQL
- Host: GitHub
- URL: https://github.com/jadbox/rxjs-massive
- Owner: jadbox
- Created: 2016-01-04T03:40:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T22:29:02.000Z (over 10 years ago)
- Last Synced: 2025-03-04T07:32:12.294Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rxjs massive
```
const db = dbrx.connectSync({connectionString: connectionString});
const { findDoc, saveDoc, destroy, searchDoc } = db;
const my = db.fromTable('my_documents');
saveDoc('my_documents', {foo:'test'}).flatMap(::my.findDoc('my_documents', 0)).subscribe(::console);
// or
my.saveDoc({foo:'test'}).flatMap(::my.findDoc(0)).subscribe(::console.log);
```
## INSTALL
npm install
## TO BUILD dist/rxjs-massive.js (optional)
npm run build
## TO RUN
npm start
## TO TEST
npm run test