You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnconsole.error('error fetching client from pool', err);
31
31
}
32
32
client.query('SELECT $1::int AS number', ['1'], function(err, result) {
33
33
//call `done()` to release the client back to the pool
34
34
done();
35
-
35
+
36
36
if(err) {
37
37
returnconsole.error('error running query', err);
38
38
}
@@ -124,32 +124,14 @@ Usually I'll pop the code into the repo as a test. Hopefully the test fails. T
124
124
125
125
If you need help or run into _any_ issues getting node-postgres to work on your system please report a bug or contact me directly. I am usually available via google-talk at my github account public email address.
126
126
127
-
I usually tweet about any important status updates or changes to node-postgres on twitter.
127
+
I usually tweet about any important status updates or changes to node-postgres on twitter.
128
128
Follow me [@briancarlson](https://twitter.com/briancarlson) to keep up to date.
129
129
130
130
131
131
## Extras
132
132
133
-
node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture:
134
-
135
-
-[brianc/node-pg-native](https://github.com/brianc/node-pg-native) - Simple interface abstraction on top of [libpq](https://github.com/brianc/node-libpq)
136
-
-[brianc/node-pg-query-stream](https://github.com/brianc/node-pg-query-stream) - Query results from node-postgres as a readable (object) stream
137
-
-[brianc/node-pg-cursor](https://github.com/brianc/node-pg-cursor) - Query cursor extension for node-postgres
138
-
-[brianc/node-pg-copy-streams](https://github.com/brianc/node-pg-copy-streams) - COPY FROM / COPY TO for node-postgres. Stream from one database to another, and stuff.
139
-
-[brianc/node-postgres-pure](https://github.com/brianc/node-postgres-pure) - node-postgres without any of the C/C++ stuff
140
-
-[brianc/node-pg-types](https://github.com/brianc/node-pg-types) - Type parsing for node-postgres
141
-
-[Suor/pg-bricks](https://github.com/Suor/pg-bricks) - A higher level wrapper around node-postgres to handle connection settings, sql generation, transactions and ease data access.
142
-
-[grncdr/node-any-db](https://github.com/grncdr/node-any-db) - Thin and less-opinionated database abstraction layer for node.
143
-
-[brianc/node-sql](https://github.com/brianc/node-sql) - SQL generation for node.js
144
-
-[hiddentao/squel](https://hiddentao.github.io/squel/) - SQL query string builder for Javascript
-[datalanche/node-pg-format](https://github.com/datalanche/node-pg-format) - Safely and easily create dynamic SQL queries with this Node implementation of [PostgreSQL format()](http://www.postgresql.org/docs/9.3/static/functions-string.html#FUNCTIONS-STRING-FORMAT).
147
-
-[iceddev/pg-transact](https://github.com/iceddev/pg-transact) - A nicer API on node-postgres transactions
148
-
-[sehrope/node-pg-db](https://github.com/sehrope/node-pg-db) - Simpler interface, named parameter support, transaction management and event hooks.
149
-
-[vitaly-t/pg-promise](https://github.com/vitaly-t/pg-promise) - Use node-postgres via [Promises/A+](https://promisesaplus.com/).
150
-
-[pg-then](https://github.com/coderhaoxin/pg-then) A tiny wrapper of `pg` for promise api.
151
-
-[acarl/pg-restify](https://github.com/acarl/pg-restify) - Creates a generic REST API for a postgres database using restify.
152
-
-[XeCycle/pg-template-tag](https://github.com/XeCycle/pg-template-tag) - Write queries with ES6 tagged template literals, a "poor man's query builder".
133
+
node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture.
134
+
Entire list can be found on [wiki](https://github.com/brianc/node-postgres/wiki/Extras)
0 commit comments