New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

db-drizzle

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-drizzle

Drizzle database bindings for Node.JS

latest
npmnpm
Version
0.7.5
Version published
Weekly downloads
69
475%
Maintainers
1
Weekly downloads
 
Created
Source

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] homepage.

INSTALL

Before proceeding with installation, you need to have the Drizzle libraries and include files. In order for the installation script to locate them properly, you'll need to set the DRIZZLE_INCLUDE_DIR and DRIZZLE_LIB_DIR environment variables. For example:

$ export DRIZZLE_INCLUDE_DIR=/usr/include/libdrizzle
$ export DRIZZLE_LIB_DIR=/usr/lib

Once the environment variables are set, install with npm:

$ 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] license.

Keywords

database

FAQs

Package last updated on 17 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts