Skip to content

Commit

Permalink
F/update rxjs (#19)
Browse files Browse the repository at this point in the history
* update depnedencies

* update test
  • Loading branch information
haoliangyu authored Aug 31, 2020
1 parent 142e744 commit 15ead70
Show file tree
Hide file tree
Showing 5 changed files with 1,262 additions and 2,482 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 1.0.2 (2020-08-31)

* update dependencies
* update wrong code in the README

## 1.0.1 (2019-06-08)

* update dependencies
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ npm install pg-reactive@^0.3.5

``` javascript
import PgRx from 'pg-reactive';
import { map } from "rxjs/operators";

const db = new PgRx('postgres://postgres@$localhost/tester');

db.query('SELECT id FROM user')
.map((row) => row.id)
.pipe(
map((row) => row.id)
)
.subscribe((id) => {
console.log('ID: ', id);
});
Expand Down
Loading

0 comments on commit 15ead70

Please sign in to comment.