mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Updated FAQ (markdown)
parent
6f1b6248d3
commit
6546452170
16
FAQ.md
16
FAQ.md
@ -49,5 +49,21 @@ http.createServer(function(req, res) {
|
||||
});
|
||||
})
|
||||
```
|
||||
### 6. How do I use the Client instance directly? ###
|
||||
|
||||
Example code:
|
||||
|
||||
var client = new Client(connectionString);
|
||||
client.connect();
|
||||
// now enumerate ...
|
||||
enumerate(client, path, callback);
|
||||
//
|
||||
client.end();
|
||||
|
||||
This fails with:
|
||||
|
||||
var client = new Client(connectionString);
|
||||
^
|
||||
ReferenceError: Client is not defined
|
||||
|
||||
Thank you Brian. pg is excellent.
|
||||
Loading…
x
Reference in New Issue
Block a user