Skip to content

Commit

Permalink
docs update.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Nov 22, 2015
1 parent 3f4450f commit 2105971
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ monitor.attach(options, ['query', 'error']);
```

Query-related events supported by pg-promise: `connect`, `disconnect`, `query`, `task`, `transact` and `error`.
See [Initialization Options](https://github.com/vitaly-t/pg-promise#initialization-options).

See also: [Initialization Options](https://github.com/vitaly-t/pg-promise#initialization-options).

#### [override]

Expand All @@ -132,7 +133,7 @@ Monitors and reports event [connect](https://github.com/vitaly-t/pg-promise#conn

#### client

Connection object passed to the event.
[Client] object passed to the event.

#### [detailed]

Expand All @@ -146,7 +147,7 @@ Monitors and reports event [disconnect](https://github.com/vitaly-t/pg-promise#d

#### client

Connection object passed to the event.
[Client] object passed to the event.

#### [detailed]

Expand All @@ -160,7 +161,7 @@ Monitors and reports event [query](https://github.com/vitaly-t/pg-promise#query)

#### e

Context object passed to the event.
Event context object.

#### [detailed]

Expand All @@ -174,15 +175,15 @@ Monitors and reports event [task](https://github.com/vitaly-t/pg-promise#task).

#### e

Context object passed to the event.
Event context object.

## transact(e)

Monitors and reports event [transact](https://github.com/vitaly-t/pg-promise#transact).

#### e

Context object passed to the event.
Event context object.

## error(err, e, [detailed])

Expand All @@ -194,7 +195,7 @@ Error message passed to the event.

#### e

Error context passed to the event.
Event context object.

#### [detailed]

Expand Down Expand Up @@ -303,3 +304,4 @@ that returns the tag name.

[pg-promise]:https://github.com/vitaly-t/pg-promise
[monitor.detailed]:https://github.com/vitaly-t/pg-monitor#detailed-4
[Client]:https://github.com/brianc/node-postgres/blob/master/lib/client.js#L12

0 comments on commit 2105971

Please sign in to comment.