Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 71fe375a1e
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (27 sloc) 0.95 kb

db-drizzle: Drizzle database bindings for Node.js

For detailed information about this and other Node.js database bindings visit the Node.js DB homepage.

INSTALL

$ 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) {
    if (error) {
        return console.log("CONNECTION ERROR: " + error);
    }

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

LICENSE

This module is released under the MIT License.

Jump to Line
Something went wrong with that request. Please try again.