Skip to content

Commit 452fa66

Browse files
committed
update readme
1 parent 7397abb commit 452fa66

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ Non-blocking PostgreSQL client for node.js. Pure JavaScript and native libpq bi
88

99
## Examples
1010

11-
All examples will work with the pure javascript bindings (currently default) or the libpq native (c/c++) bindings (currently in beta)
12-
13-
To use native libpq bindings replace `require('pg')` with `require('pg').native`.
14-
15-
The two share the same interface so __no other code changes should be required__. If you find yourself having to change code other than the require statement when switching from `pg` to `pg.native`, please report an issue.
16-
17-
node-postgres supports both an 'event emitter' style API and a 'callback' style. The callback style is more concise and generally preferred, but the evented API can come in handy. They can be mixed and matched. The only events which do __not__ fire when callbacks are supplied are the `error` events, as they are to be handled by the callback function.
18-
1911
### Simple, using built-in client pool
2012

2113
var pg = require('pg');
@@ -73,9 +65,19 @@ node-postgres supports both an 'event emitter' style API and a 'callback' style.
7365
client.end();
7466
});
7567

68+
### Example notes
69+
70+
node-postgres supports both an 'event emitter' style API and a 'callback' style. The callback style is more concise and generally preferred, but the evented API can come in handy. They can be mixed and matched. The only events which do __not__ fire when callbacks are supplied are the `error` events, as they are to be handled by the callback function.
71+
72+
All examples will work with the pure javascript bindings (currently default) or the libpq native (c/c++) bindings (currently in beta)
73+
74+
To use native libpq bindings replace `require('pg')` with `require('pg').native`.
75+
76+
The two share the same interface so __no other code changes should be required__. If you find yourself having to change code other than the require statement when switching from `pg` to `pg.native`, please report an issue.
77+
7678
### Info
7779

78-
* a pure javascript client and native libpq bindings with _the same api_
80+
* pure javascript client and native libpq bindings share _the same api_
7981
* _heavily_ tested
8082
* the same suite of 200+ integration tests passed by both javascript & libpq bindings
8183
* benchmark & long-running memory leak tests performed before releases
@@ -84,7 +86,7 @@ node-postgres supports both an 'event emitter' style API and a 'callback' style.
8486
* Linux, OS X
8587
* node 2.x & 4.x
8688
* row-by-row result streaming
87-
* optional, built-in connection pooling
89+
* built-in (optional) connection pooling
8890
* responsive project maintainer
8991
* supported PostgreSQL features
9092
* parameterized queries
@@ -94,9 +96,7 @@ node-postgres supports both an 'event emitter' style API and a 'callback' style.
9496
* query queue
9597
* active development
9698
* fast
97-
* No dependencies (other than PostgreSQL)
98-
* No monkey patching
99-
* Tried to mirror the node-mysql api as much as possible for future multi-database-supported ORM implementation ease
99+
* close mirror of the node-mysql api for future multi-database-supported ORM implementation ease
100100

101101
### Contributors
102102

@@ -110,15 +110,18 @@ Many thanks to the following:
110110
* [ef4](https://github.com/ef4)
111111
* [napa3um](https://github.com/napa3um)
112112
* [drdaeman](https://github.com/drdaeman)
113+
* [booo](https://github.com/booo)
113114

114115
## Documentation
115116

116-
Still a work in progress, I am trying to flesh out the wiki...
117+
Documentation is a work in progress primarily taking place on the github WIKI
117118

118119
### [Documentation](https://github.com/brianc/node-postgres/wiki)
119120

120121
### __PLEASE__ check out the WIKI
121122

123+
If you have a question, post it to the FAQ section of the WIKI so everyone can read the answer
124+
122125
## Production Use
123126
* [bayt.com](http://bayt.com)
124127

0 commit comments

Comments
 (0)