Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
cubrid API for node-db
C++ JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
src
.gitmodules
CHANGELOG
README.md
db-cubrid.js
package.json
tests-settings.json
tests.js
wscript

README.md

db-cubrid: CUBRID database bindings for Node.js

For detailed information about this and other Node.js database bindings visit the Node.js db-cubrid homepage.

INSTALL

Before proceeding with installation, you need to have the libcascci development libraries and include files. PATH to CUBRID install is mandatory and it should be specified prior to installation if not already set. For example:

$ export CUBRID=/home/user/CUBRID

Install with npm:

$ npm install db-cubrid

QUICK START

var cubrid = require('db-cubrid');
new cubrid.Database({
    hostname: 'localhost',
    user: 'dba',
    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.

Something went wrong with that request. Please try again.