Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jadbox committed Jan 15, 2016
1 parent 6cb4f16 commit 87848c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ $ npm install pg-rxjs
```js
const pg = require('pg-rxjs')

const pool = pg.Pool('postgres://username:password@localhost/database')
// Default config: { debug: false, noMoment: false }
// 'debug' option console.logs statements that pg will execute
const pool = pg.Pool('postgres://username:password@localhost/database', {...config})

pool
.query('SELECT ...')
Expand All @@ -46,7 +48,7 @@ pg.Pool(config)
```js
const pg = require('pg-rxjs')

const client = pg.Client('postgres://username:password@localhost/database')
const client = pg.Client('postgres://username:password@localhost/database', {...config})
const query = client.query; // methods are already bound to the client

query('SELECT ...')
Expand Down Expand Up @@ -100,7 +102,7 @@ transaction([
* Input time using [Moment.js](http://momentjs.com/)
* Disable by setting opts: pg.Client(url, {noMoment: true})
* Only works with *timestamps*, not date fields
* Works with transactions and stream objects too
* Works with transactions and stream methods too
```js
// Use $NOW to insert a timestamp value of the current UTC time
Expand Down

0 comments on commit 87848c7

Please sign in to comment.