Skip to content

Commit

Permalink
Syntax highlighting docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano committed Jun 3, 2011
1 parent 64eebed commit c49d9dc
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,32 @@ database bindings visit the [Node.js DB homepage] [homepage].

## INSTALL ##

$ npm install db-drizzle
```bash
$ npm install db-drizzle
```

## QUICK START ##

var drizzle = require('db-drizzle');
new drizzle.Database({
hostname: 'localhost',
user: 'root',
password: 'password',
database: 'node'
}).connect(function(error) {
```javascript
var drizzle = require('db-drizzle');
new drizzle.Database({
hostname: 'localhost',
user: 'root',
password: 'password',
database: 'node'
}).connect(function(error) {
if (error) {
return console.log("CONNECTION ERROR: " + error);
}

this.query().select('*').from('users').execute(function(error, rows) {
if (error) {
return console.log("CONNECTION ERROR: " + error);
return console.log('ERROR: ' + error);
}

this.query().select('*').from('users').execute(function(error, rows) {
if (error) {
return console.log('ERROR: ' + error);
}
console.log(rows.length + ' ROWS');
});
console.log(rows.length + ' ROWS');
});
});
```

## LICENSE ##

Expand Down

0 comments on commit c49d9dc

Please sign in to comment.