-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
#pg.js | ||
pure javascript PostgreSQL driver | ||
Pure JavaScript PostgreSQL driver for node.js | ||
|
||
## extremely alpha | ||
## ALPHA version | ||
|
||
but it wont be SOON. | ||
|
||
Unlike many githubbers this is my only project I'm working on. All my | ||
Unlike many githubbers this is my only active project. All my | ||
free coding time is to be going towards this until it's production | ||
ready and stable. | ||
ready and stable so watch the repo and stay tuned. | ||
|
||
### What works? | ||
|
||
var client = new Client({ | ||
username: 'brianc', | ||
database: 'postgres' | ||
}); | ||
|
||
client.connect(); | ||
|
||
client.query('select typname, oid from pg_type'); | ||
|
||
so...watch the repo & stay tuned! | ||
query.on('row', function(row) { | ||
console.log('type name: ' + row[0] + ' oid: ' + row[1]); | ||
}; | ||
|
||
TDD developed pure node postgres client | ||
query.on('end') { | ||
client.disconnect(); | ||
}; |